Hi!

Okay, one more in english....

I'm working on a documentation (in german) about cxxtool-logging-funktion.
If i has the case, my standalone application has a command line flag
"-v, --verbose" for debugging, i need a way to configuration my longing
in c++, but can't find public setter function in any loging classes
to swich output from file to std::cout.

I think inheritance and adding new setter function is not a comfortable
way and the way over SerializationInfo is not better.

So, any ideas??

Tank you.

Olaf

> Olaf Radicke <[email protected]> hat am 20. August 2013 um 09:35
> geschrieben:
>
>
> Hallo!
>
> Ich arbeite gerade an eine einer zur cxxtool-logging-Funktion. Ich wollte
> beschreiben wie man in einer Standerlone-Applikation das Logging konfigurieren
> kann ohne eine tntnet.config oder den cxxtools::SerializationInfo zu benutzen.
> Das scheint sich offenbar etwas schwieriger zu gestalten.
>
> Die betreffenden Eigenschaften der Klassen sind alle privat und es gibt
> keine Setter-Methoden. Die Klassen über Vererbung zu erweitern halte ich für
> zu aufwendig.
>
> Mit ein möglicher Anwendungsfall klar ist: Es ist nichts ungewöhnliches, das
> ein Programm ein Parameter "-v" hat um es für Debugging gesprächiger zu
> machen. Dann will man die Konfiguration temporär höher setzen und die Ausgabe
> nach cout statt in eine Datei rausschreiben.
>
> Hatte schon jemand das Problem? Oder ein Lösungsansatz?
>
> Gruß
>
> Olaf
>
>
> -------------------|-------------------|-------------------|-------------------|
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general
-------------------|-------------------|-------------------|-------------------|

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to