Thursday, July 25, 2013

Make log4net write logs to a particular folder instead of the immediate bin folder.

Change out the follow bit of log4net.config as seen in the third blob of code here to specify a specific path like so:

<file value="c:\errorlog.log" />

 
 

I think the c needs to be lowercase and not an uppercase C. This learned this the hard way. (silent failures) Grrr.

No comments:

Post a Comment