Hi All,
I had a quick log4net question. How can I specify which appender to use from the app.Config? This particular config file references 2 different appenders. Both are rolling file appenders but they point to different files. Throughout the application log4net is being called and a type is passed into the constructor. like this...
private static readonly ILog log = LogManager.GetLogger(typeof(Foo));
How does log4net know which appender to choose? Can you map types to specific named appenders? I know there are 5 constructors for GetLogger, can you pass a type and an appender name? I see "repositoryName", not sure what that is. If anyone can point me in the right direction I would greatly appreciate it. I would like a certain set of types to log specifically to one appender.
Thanks for any tips,
~ck in San Diego