log4net logging to multiple defined appenders using class name loggers
问题 I want to log to multiple files (2 different files only) but leave the logger name the same as the class name like is typically done: private static readonly log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, isReadOnly); I want to keep the class name so I can output it to the logger. The problem is, I need to dynamically switch between appenders based on the wcf method being called (this is a wcf service). I tried various log4net config settings