Add, enable, disable log4cxx ConsoleAppender at runtime

2013-05-09 Thread Wesley J. Miller
How would I dynamically turn log4cxx logging to the console on and off in an application? Goal here is to process a used choice, command line parm or GUI input or whatever. Thus in a hypothetical main loop: if ( userWantsToStartConsoleLogger ) ConsoleLogger( true ); if ( userWantsToStopCo

Re: Add, enable, disable log4cxx ConsoleAppender at runtime

2013-05-09 Thread log4cxx
Hi Wea, Our product has code to dynamically add a console appender, but it is not currently in use. As such, I can't say for sure whether it works or not. === static const LogString DateTimeThreadLevelClassMessagePattern (LOG4CXX_STR("%d{dd/MM HH:mm:ss.SSS} %-5p %c - %m%n"));

Re: Add, enable, disable log4cxx ConsoleAppender at runtime

2013-05-09 Thread Wesley J. Miller
> >Andy, > >Thanks. Will give it a look. > >And, sadly, I stink as a typist. It "Wes" not "Wea". Sigh. > >Wesley J. Miller >NASCENT Technology, LLC >wmil...@nascent.com > > CONFIDENTIALITY NOTE: This e-mail and any attachments are confidential. If you are not the intended recipient, be aware