You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Dominik Psenner (JIRA)" <ji...@apache.org> on 2011/08/18 15:53:27 UTC

[jira] [Commented] (LOG4NET-227) create a more directory when log files.

    [ https://issues.apache.org/jira/browse/LOG4NET-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087018#comment-13087018 ] 

Dominik Psenner commented on LOG4NET-227:
-----------------------------------------

This configuration part looks terribly odd:
--quote--
<datePattern value="yyyyMMdd&quot;\\&quot;HH&quot;.log&quot;" />
--quote--

Why are there quotes in the datepattern (&quot;)? I can't recall that windows would support quotes in its filenames.

> create a more directory when log files.
> ---------------------------------------
>
>                 Key: LOG4NET-227
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-227
>             Project: Log4net
>          Issue Type: Bug
>          Components: Builds
>    Affects Versions: 1.2.10
>         Environment: .net
>            Reporter: ljm
>            Priority: Critical
>             Fix For: 1.2.11
>
>
> 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&quot;\\&quot;HH&quot;.log&quot;" />
>       <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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira