Skip to content
Advertisement

Tag: log4net

log4net cross platform XML config

I have a requirement to store my log files in a Logs sub folder. Normally you would do this my modifying the FileAppender in you App.config as follows: However this is not cross platform because if you run this on linux it will create a file called ‘LogsMyLog.log’ rather then a directory. This is because ” is not a path

Advertisement