Using log4net to store text in file. from
http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/
In the appsettings file:
<param name="File" value="C:\Try\logger\logger\bin\Debug\log.txt" />
is used to create the file. Problem is the file will already exist from previous runs; how can I add additional info to the filename e.g.
<param name="File"
value="C:\Try\logger\logger\bin\Debug\log + "Monday" + .txt" />
Here Monday flags saying it is missing required whitespace?
UPDATE *Thanks for the duplicate Ive used it to add:*
<param name="DatePattern" value="dd.MM.yyyy'.log'" />
<param name="File"
value="C:\Try\logger\logger\bin\Debug\log + DatePattern + .txt" />
but now the file is saved as
log + DatePattern + .txt
why wont it save the actual date?