logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pelton, Brian" <bpel...@jgboswell.com>
Subject RE: Turn off logging for a specific event only
Date Tue, 26 Sep 2006 22:08:23 GMT

One option would be to use a separate logger for that method.
You could then control the logging for it.

This would mean you would have to modify the source code to use a new
logger.  Is that possible?

--Brian

 

________________________________

From: Ramaa Davanagere [mailto:RDAVANAG@mobius.com] 
Sent: Tuesday, September 26, 2006 2:33 PM
To: 'log4net-user@logging.apache.org'
Subject: RE: Turn off logging for a specific event only



can somebody help me with this issue? Thanks. 

-----Original Message----- 
From: Ramaa Davanagere 
To: 'log4net-user@logging.apache.org' 
Sent: 9/26/06 2:28 PM 
Subject: Turn off logging for a specific event only 

Is it possible to turn off the logging for a specific event? I would 
like to turn of the logging when the code hits a particular method and 
reset the logging to its original value which is "DEBUG" while exiting 
that method. Is it possible to accomplish this? If so, please provide me

some sample code on how to achieve this. My code is in c#.net and uses 
log4net version 1.2.10 

Please help 

Thanks. 

-Ramaa 


Mime
View raw message