My exp is that log4net creates dirs as needed, no?

-----Original Message-----
From: Gary Hinger
To: [email protected]
Sent: Fri Jun 30 17:41:27 2006
Subject: XML configuration file - extracting elements

Is there a way to extract elements from log4net’s XML configuration file, 
without reopening the file and parsing it?

 

For example, I’d like to get a certain appender’s “file” property, so that I 
can create the logging directory every time logging is done. I need to do this 
to support runtime changes in the directory specification in config xml. Since 
the log4net assembly is designed to watch the file, it would be a shame to have 
to reparse the file in separate code.

 

Also, is there a way to get log4net to create directories as necessary when 
logging? This would solve my immediate problem. Thanks.

 



--------------------

This email message is for the sole use of the intended recipient(s) and
may contain privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.

Reply via email to