JL. JL. - 1 year ago 148
C# Question

Log4net rolling daily filename with date in the file name

I would like to have files named for example:


How is this possible with log4net?

Mun Mun
Answer Source

In your Log4net config file, use the following parameter with the RollingFileAppender:

<param name="DatePattern" value="dd.MM.yyyy'.log'" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download