I’m currently using the log4net portion of the Castle Windsor logging facility, like so:
objContainer.AddFacility("logging", New LoggingFacility(LoggerImplementation.Log4net)WithConfig("Configs\Log4net.config"))
I need to pass in a couple of variables to the logger because I am using dynamic log file names. I have looked at the source code and determined that one possible course of action is to create a custom factory and facility but this is alot of work and I’m not sure it is best practice.
I note Castle has an ExtendedLog4Net version but there seems to be little documentation on it. Can anyone shed any light on the best way to achieve this?
Thanks,
Ross.
I ended up using the CreateChildLogger() method to create the loggers needed as I had time constraints on this project. Thanks for all of the advice.