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.
| 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. |
|
|
|
ActiveForums 3.7
|