Re: Configure Log4net from code at RunTime

2005-08-24 Thread Mauro Rallo
Ok, I found my mistake. I've to take the new Logger to configure from the Hierarchy class and not from the LoggerFactory. So the correct code is : Hierarchy hierarchy = (Hierarchy)LogManager.GetRepository(); Logger rootLogger = hierarchy.Root; Logger coreLogger = hierarchy.GetLogger("abc") as Logg

Configure Log4net from code at RunTime

2005-08-23 Thread Mauro Rallo
Hi, I need to add a child to the root category of logging at runtime. I configure log4net at the startup of my application with the app.config file. After I need to add some category with differents appenders. I tried with this code, but it doesn't work : Hierarchy hierarchy = (Hierarchy)LogManag