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 "Ron Grabowski (JIRA)" <ji...@apache.org> on 2006/03/04 20:06:42 UTC

[jira] Updated: (LOG4NET-59) [PATCH] to RollingFileAppender.cs to add the ability to roll files based on universal time (UTC).

     [ http://issues.apache.org/jira/browse/LOG4NET-59?page=all ]

Ron Grabowski updated LOG4NET-59:
---------------------------------

    Attachment: RollingFileAppender_UniversalDateTime.patch

Added UniversalDateTime class that implements IDateTime using DateTime.UtcNow instead of DateTime.Now. Added public property to RollingFileAppender called DateTimeStrategy which defaults to DefaultDateTime (DateTime.Now). This is how you set the DateTimeStrategy of the RollingFileAppender via an XML config file:

 <dateTimeStrategy type="log4net.Appender.RollingFileAppender+UniversalDateTime" />

> [PATCH] to RollingFileAppender.cs to add the ability to roll files based on universal time (UTC).
> -------------------------------------------------------------------------------------------------
>
>          Key: LOG4NET-59
>          URL: http://issues.apache.org/jira/browse/LOG4NET-59
>      Project: Log4net
>         Type: New Feature
>   Components: Appenders
>     Versions: 1.2.9
>     Reporter: Lanchon
>     Assignee: Ron Grabowski
>  Attachments: Original-1.2.9-beta-RollingFileAppender.cs, Patched-1.2.9-beta-RollingFileAppender.cs, RollingFileAppender_UniversalDateTime.patch, informative-diff.txt
>
> the file naming and rolling time zone is selected via a new property. the default value of this property provides backwards compatible bahviour. the patch is done on the published 1.2.9beta version. the diff file is only informative (not made with the right tool), use original and patched files to create a useful diff (accpet my apologies for this). -L

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira