[
https://issues.apache.org/jira/browse/LOG4NET-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593974#action_12593974
]
Ansgar Flack commented on LOG4NET-135:
--------------------------------------
The xml snippet is well-formed but it doesn't match the text above.
The documentation says:
"This example show how to configure the RollingFileAppender to roll
log files once per program execution."
but in the snippet rollingStyle is set to "size"
<rollingStyle value="Size" />
shouldnt it be set to "once"?
<rollingStyle value="Once" />
With "Size" LOG4NET wasn't creating a new file everytime I started my program.
Ansgar Flack
> Bad example code in documentation
> ---------------------------------
>
> Key: LOG4NET-135
> URL: https://issues.apache.org/jira/browse/LOG4NET-135
> Project: Log4net
> Issue Type: Bug
> Components: Appenders, Documentation
> Reporter: Ansgar Flack
> Priority: Minor
>
> http://logging.apache.org/log4net/release/config-examples.html
> The last code example under "RollingFileAppender" seems to be wrong.
> Shouldn't it be:
> <rollingStyle value="Once" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.