Search Results

Search found 1 results on 1 pages for 'andreav'.

Page 1/1 | 1 

  • log4net - getting appenders specific to only one logger

    - by andreav
    I'm looking for a way to get all appenders attached to one logger instance. I tried: Hierarchy hierarchy = LogManager.GetRepository() as Hierarchy; hierarchy.GetAppenders() as per documentation this returns all appenders for all loggers currently configured. When I try this: LogManager.GetLogger("MyLoggerName").Logger.Repository.GetAppenders(); I get the same result. I would like to retrieve only appenders attached to one logger ("MyLoggerName" in this case) Were am i wrong? Thank you.

    Read the article

1