Log4net
  1. Log4net
  2. LOG4NET-227

create a more directory when log files.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2 Maintenance Release
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      .net

      Description

      Something unpredicted happened When using log4.net.
      As I understood during one hour we should have just one log file named for example '15.log' if translation requests come during this hour. But in my case new folder named 15.log20090811 has been created in the \\scratchy\sysdev$\qa\SoapLogs\WebService1\20090811 and new file 15.log in it.
      Do you have an idea why existing 15.log file wasn't updated with that information?

      The log4.net appender configuration as follows:
      <appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="\\scratchy\sysdev$\qa\SoapLogs\WebService1\" />
      <appendToFile value="true" />
      <rollingStyle value="Composite" />
      <datePattern value="yyyyMMdd"
      "HH".log"" />
      <lockingModel type="log4net.Appender.RollingFileAppender+MinimalLock"/>
      <StaticLogFileName value="false" />
      <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="-- %date [%thread] %-5level %logger --%newline%message%newline" />
      </layout>
      </appender>

      Thanks.

      Liu jianming.

        Issue Links

          Activity

          ljm created issue -
          Stefan Bodewig made changes -
          Field Original Value New Value
          Fix Version/s 1.2.11 [ 12310980 ]
          Fix Version/s 1.2.10 [ 11128 ]
          Stefan Bodewig made changes -
          Fix Version/s 1.2 Maintenance Release [ 12317606 ]
          Fix Version/s 1.2.11 [ 12310980 ]
          Stefan Bodewig made changes -
          Component/s Appenders [ 11601 ]
          Component/s Builds [ 11602 ]
          Dominik Psenner made changes -
          Link This issue is superceded by LOG4NET-367 [ LOG4NET-367 ]

            People

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

              Dates

              • Created:
                Updated:

                Development