Monday, 26 August 2013

What is the meaning of RollingFileAppender in log4net

What is the meaning of RollingFileAppender in log4net

I read the documentation of it but I just don't understand it.It says:
RollingFileAppender can roll log files based on size or date or both
depending on the setting of the RollingStyle property. When set to Size
the log file will be rolled once its size exceeds the MaximumFileSize.
When set to Date the log file will be rolled once the date boundary
specified in the DatePattern property is crossed. When set to Composite
the log file will be rolled once the date boundary specified in the
DatePattern property is crossed, but within a date boundary the file will
also be rolled once its size exceeds the MaximumFileSize. When set to Once
the log file will be rolled when the appender is configured. This
effectively means that the log file can be rolled once per program
execution.
I am trying to find a way everytime I use the file appender a new file to
be created but not to append to the same one.

No comments:

Post a Comment