tags:

views:

1195

answers:

2

I would like to have files named for example:

dd.mm.yyyy.log

How is this possible with log4net?

Thanks

+3  A: 

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

<param name="DatePattern" value="dd.MM.yyyy'.log'" />
Mun
+2  A: 

For a RollingLogFileAppender you also need these elements and values:

<rollingStyle value="Date" />
<staticLogFileName value="false" />
BobD