Hi, I have been doing what it was suggested in http://stackoverflow.com/questions/571876/best-way-to-dynamically-set-an-appender-file-path/3371566#3371566 to set the file name dynamically, using %property{}, but the file is created as "(nul).log" below is the code
log4net.GlobalContext.Properties["service"] = _servicename.ToString();
_flatFileLogger = LogManager.GetLogger("FlatFileLogger");
_flatFileLogger.Debug(logData.ToString());
I have declared in the XML file as
file type="log4net.Util.PatternString" value="C:\My_Log\%property{service}.log"
Help much appreciated.