Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-423

The logs don’t appear working correctly. New logs are created at 12:00PM EST every day. This is in addition to the Recycle and new log creation at 12:00 AM EST. We are losing log entries from 12:00AM to 11:59AM.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:

      Description

      <log4net debug="true">
      <appender name="MyRollingFile" type="log4net.Appender.RollingFileAppender">
      <param name="File" value="Logs
      Filename.xls" />
      <param name="AppendToFile" value="true" />
      <param name="MaximumFileSize" value="20MB" />
      <param name="MaxSizeRollBackups" value="20" />
      <rollingStyle value="Composite" />
      <datePattern value="yyyyMMdd" />
      <staticLogFileName value="false" />
      <layout type="log4net.Layout.PatternLayout">
      <header value="DateTime\tType\tUserID\tBusinessUnitID\tOperatingUnitID\tUser City\tUser State\tUser Country\tServer Name\tPage Name\tTime ms\tTicket\tMethod\tError\tError Details\tAddtional Error\tAddtional Error Details\tQuery Filters\tDuration Time ms\n" />
      <param name="ConversionPattern" value="%d %-5p %m%n" />
      </layout>
      </appender>
      <root>
      <!-- Logging Level: ALL, DEBUG, INFO, WARN, ERROR, FATAL -->
      <!--<level value="ERROR" />
      <level value="INFO" />-->
      <level value="ALL"/>
      <appender-ref ref="MyRollingFile" />
      </root>
      </log4net>

      Above is my log4net configuration values.. My issue is that when I am trying to rolled file. the files are in this format filename.xls20140219, filename.xls20140219.1,........filename.xls20140219.20. It is working fine till 12 AM. But its lost some log entries in between 12 AM to 11.59 AM. Please tell me what is the issue with me. Anything wrong in config file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vmeshram Vaishali Meshram
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: