Software Tip: Add Machine Name to Log4Net Filename
Posted on October 28th, 2009 by ragin'Geek
If you have multiple servers logging to the same folder, you can create unique file names by adding the server name to the file that it logs to by changing your log4netConfig.xml file to something like:
<file type=”log4net.Util.PatternString” value=”logs/MultiServerApp.%property{log4net:HostName}.log” />


















Discussion Area - Leave a Comment