Log4net
  1. Log4net
  2. LOG4NET-251

RollingFileAppender with rollingStyle="Date" and maximumFileSize both are not working Simultaneously.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      windows-7 OS

      Description

      I have one problem with RollingFileAppender Type.
      when i am create a configuration with rollingstyle=Date and with maximumFileSize=1 KB. then also appender is write a more then 1 kb. of file size.
      now we remove a rollingstyle=Date then it works fine with maximumFileSize. is there are any problem with maximumFileSize and rollingstyle=Date ?

        Activity

        Hide
        Stefan Bodewig added a comment -

        This really is a user-list question.

        In order to roll on date and size you must use "Composite" as rollingStyle. See the third example in http://logging.apache.org/log4net/release/config-examples.html#RollingFileAppender

        Show
        Stefan Bodewig added a comment - This really is a user-list question. In order to roll on date and size you must use "Composite" as rollingStyle. See the third example in http://logging.apache.org/log4net/release/config-examples.html#RollingFileAppender

          People

          • Assignee:
            Unassigned
            Reporter:
            rakesh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development