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
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
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
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
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.
>
>
]
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
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
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
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