RE: Configure the debug value to true or false when needed through C# code

2010-01-20 Thread Leo Mathew
Thanks. Removing of the debug attribute worked. From: Alasdair Richardson [mailto:[email protected]] Sent: Tuesday, January 19, 2010 1:31 PM To: Log4NET User Subject: RE: Configure the debug value to true or false when needed through C# code

RE: Configure the debug value to true or false when needed through C# code

2010-01-19 Thread Leo Mathew
I will try both and let you know. Thanks in advance. From: Alasdair Richardson [mailto:[email protected]] Sent: Tuesday, January 19, 2010 1:31 PM To: Log4NET User Subject: RE: Configure the debug value to true or false when needed through C# code

RE: Configure the debug value to true or false when needed through C# code

2010-01-19 Thread Alasdair Richardson
To: Log4NET User Subject: RE: Configure the debug value to true or false when needed through C# code Now I see what you are trying to do. This can be done in your app.config too

RE: Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Alasdair Richardson
or false when needed through C# code Use log4net.Util.LogLog.InternalDebugging = false; http://log4net.sourceforge.net/release/1.2.0.30316/doc/manual/faq.html#i nternalDebug 2010/1/19 Leo Mathew

Re: Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Cankut Eskin
Use log4net.Util.LogLog.InternalDebugging = false; http://log4net.sourceforge.net/release/1.2.0.30316/doc/manual/faq.html#internalDebug 2010/1/19 Leo Mathew > Hi All, > > > > We are using log4Net in our application. > > We want to make the debugging of statements to be enabled or disabled. > >

RE: Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Alasdair Richardson
] Sent: 19 January 2010 08:45 To: Alasdair Richardson Cc: Log4NET User Subject: RE: Configure the debug value to true or false when needed through C# code Hi Alasdair, I have attached the config file along with this mail

RE: Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Leo Mathew
From: Alasdair Richardson [mailto:[email protected]] Sent: Tuesday, January 19, 2010 12:58 PM To: Log4NET User; Leo Mathew Subject: RE: Configure the debug value to true or false when needed through C# code I tried to set the log level throuh an environment variable but it turn

RE: Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Alasdair Richardson
gger = logger.Parent; logger.Level = repository.LevelMap[level]; } From: Leo Mathew [mailto:[email protected]] Sent: 19 January 2010 06:46 To: [email protected] Subject: Configure the debug value to true

Configure the debug value to true or false when needed through C# code

2010-01-18 Thread Leo Mathew
Hi All, We are using log4Net in our application. We want to make the debugging of statements to be enabled or disabled. Is it possible to configure this by setting the below debug value to "true" or "false" through the C# code? The above line is from log4Net.config file. Regards