RE: Setting backColor on ColoredConsoleAppender at runtime...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Setting backColor on ColoredConsoleAppender at runtime...

Gjorven, Oyvind

Sorry… sent to soon…

   <mapping>

            <level value="INFO" />

            <forecolor value="Green"/>

            <backcolor type="log4net.Util.PatternString" value="%property{BGCOLOR}" />

   </mapping>

 

Thanks!

 

From: Gjorven, Oyvind
Sent: Monday, May 16, 2016 12:42 PM
To: '[hidden email]' <[hidden email]>
Subject: Setting backColor on ColoredConsoleAppender at runtime...

 

Is it possible to use the GlobalContext to set the backColor property of the ColoredConsoleAppender at runtime?

 

I have this mapping in the log4net.xml file:

Loading...