: Vivek R. Rathod
Sent: Wednesday, July 14, 2010 5:26 PM
To: [email protected]
Subject: programmatic configuration overrides XmlConfigurator.ConfigureAndWatch
?
Hi, I observed that if I configure log4net using
XmlConfigurator.ConfigureAndWatch, and then programmatically change the
Hi, I observed that if I configure log4net using
XmlConfigurator.ConfigureAndWatch, and then programmatically change the
configuration (change 'root' log level, for example), further changes to the
configuration file (like changing the 'root' log level back to the original
value) does not cause
aceFile)); // 2
- Original Message
From: Brendan Long <[EMAIL PROTECTED]>
To: Log4NET User
Cc: [EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 5:46:06 PM
Subject: RE: Programmatic configuration
> -Original Message-
> From: cl408e [mailto:[EMAIL PROTECTED]
> Sen
dateTimeStr = DateTime.Now.ToString("MMdd-HHmm");
- Original Message
From: Brendan Long <[EMAIL PROTECTED]>
To: Log4NET User
Cc: [EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 5:46:06 PM
Subject: RE: Programmatic configuration
[snip]
// Insert current date
> -Original Message-
> From: cl408e [mailto:[EMAIL PROTECTED]
> Sent: Friday, 22 September 2006 8:53 p.m.
> To: [email protected]
> Subject: Re: Programmatic configuration
>
>
> have you got your answer? i am keen to know that too...
Yes I did
ed to configure my application
> to log to those files (for all classes).
>
> How do I do this? I can't find a configuration example for programmatic
> configuration, but it is mentioned in the documentation and examples as
> being possible. So far I have the following code
o those files (for all classes).
>
> How do I do this? I can't find a configuration example for
> programmatic
> configuration, but it is mentioned in the documentation and examples
> as
> being possible. So far I have the following code. It seems to
> create
> the
ind a configuration example for programmatic
configuration, but it is mentioned in the documentation and examples as
being possible. So far I have the following code. It seems to create
the files, but nothing is ever logged to them.
log4net.Appender.FileAppender fileAppenderTrace