logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Fiala <dfi...@gmail.com>
Subject Re: Rolling date file not working
Date Thu, 30 Jun 2011 21:36:30 GMT
Usually a permissions issue.

The user account that is being used to write to the log file needs
full permissions on the log directory to be able to rename files.

On Thu, Jun 30, 2011 at 4:13 PM, Nikolei Zinsli <nzinsli@baudville.com> wrote:
> I’ve changed the log4net settings on our servers so it should create a new
> log every day. It seems to be working great on our development servers, but
> not on production. The web.congifs look identical. Can anyone tell me what
> might be wrong?
>
>
>
> Web config entry…
>
> <log4net>
>
>     <appender name="RollingFile"
> type="log4net.Appender.RollingFileAppender">
>
>                         <file value="App_Data\\Logs\BVLogs.log"
/>
>
>                         <rollingStyle value="Date" />
>
>                         <datePattern value="yyyyMMdd" />
>
>                         <appendToFile value="true" />
>
>                         <maximumFileSize value="1GB" />
>
>                         <maxSizeRollBackups value="60" />
>
>                         <layout type="log4net.Layout.PatternLayout">
>
>                                     <conversionPattern
value="%date %level
> %logger - %message%newline" />
>
>                         </layout>
>
>     </appender>
>
>     <root>
>
>       <level value="ALL" />
>
>       <appender-ref ref="RollingFile" />
>
>     </root>
>
>   </log4net>
>
>
>
> Thanks,
>
> Nik



-- 
Dean Fiala

RockNUG Figurehead
http://www.rocknug.org

Mime
View raw message