Marcel,

You can do something like this:

public static void SetRootLevel(log4net.spi.Level level)
{
 
((log4net.Repository.Hierarchy.Hierarchy)log4net.LogManager.GetLoggerRep
ository()).Root.Level = level;
} 


Nicko


> -----Original Message-----
> From: Marcel Kunz [mailto:[EMAIL PROTECTED] 
> Sent: 19 November 2004 12:54
> To: [email protected]
> Subject: Change Loglevel by code
> 
> Is it possible to change the level in root at runtime 
> programmatically or is the only way to set the level through 
> the log.config?
> 
> Thanks
> Marcel
> 

Reply via email to