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