Thursday, March 11, 2010
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: Activate/Deactivate Loggers during Runtime
Prev Next
You are not authorized to post a reply.

Author Messages
Johannes Frank

10/24/2007 1:17 PM  

Hello!

In a project I'm currently working on, I wish to directly deactivate/activate certain loggers during runtime so that for example
the server can determine on certain attributes when to log what. I would realize that by using several loggers, however the person
I'm doing this for wants me to implement that somehow inside the code. Anyone can give me a starting point here?
I've been googling for 5 hours now and haven't come up with anything useful yet.

Thanx in advance,
Johannes Frank        
Johannes Frank

10/24/2007 1:19 PM  

Hello again!
I'm sorry, I messed the words a little, I don't want to activate/deactivate loggers but the appenders directly (TCP Appender, UDP Appender and so on)

or better the person I'm doing this for wants to ;-)
bye,
Johannes Frank
Radovan Raszka

10/24/2007 3:53 PM  
Hello,
I was working on the same problem a few month ago - simply set appender's threshold to Off. For more details, see archive of this mailing list and search for subject "Disable/enable appender for all loggers"
Radovan
 
You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Activate/Deactivate Loggers during Runtime



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement