Hi All,

I am using log4net for the Logs and generated the new log file when new date is started(12AM). I need to create a log file when it will reach 1MB and also new date(12AM). Please help me with details of config changes.

So I need log file like as Logs.csv2013-12-01.1, Logs.csv2013-12-01.2, Logs.csv2013-12-01.3, Logs.csv2013-12-01.4, Logs.csv2013-12-02.1, Logs.csv2013-12-02.2, Logs.csv2013-12-02.3, Logs.csv2013-12-02.4, Logs.csv2013-12-03.1,
Current Log4Net.Config setting

<bufferSize value="1" />
<file type="log4net.Util.PatternString" value="..\\Logs\\Logs.csv" />
<staticLogFileName value="true" />
<appendToFile value="true" />
<staticLogFileName value="true" />
<rollingStyle value="Date" />
<DatePattern value="yyyy-MM-dd" />
<layout type="log4net.Layout.PatternLayout">
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.