Sorry, may be I posted this too soon, but I do see the log level revert back to
the original value - only I cant make it happen consistently. I looked through
the source code and noticed that there is a 500 msec delay before the config
change is processed. May be thats the reason, but Im not sur
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
have you got your answer? i am keen to know that too...
Brendan Long wrote:
>
> Hi,
>
> I am using log4net in a C# console application. The requirements
> specify that I retrieve the error log file and debug log file from the
> registry. Once I have done that I then need to configure my app
Have you verified that you're able to get the most basic configuration
up and running?
ConsoleAppender consoleAppender = new ConsoleAppender();
BasicConfigurator.Configure(consoleAppender);
ILog log = LogManager.GetLogger(typeof(Class1));
log.Debug("Hello");
log.Info("World");
The test cases