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 "Nicko Cadell (JIRA)" <ji...@apache.org> on 2005/04/17 02:28:57 UTC

[jira] Created: (LOG4NET-25) RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required
-----------------------------------------------------------------------

         Key: LOG4NET-25
         URL: http://issues.apache.org/jira/browse/LOG4NET-25
     Project: Log4net
        Type: Bug
  Components: Appenders  
    Versions: 1.2.9    
    Reporter: Nicko Cadell
     Fix For: 1.2.9


RollingFileAppender fails if RollOverIfDateBoundaryCrossing required and current directory is not ApplicationBase directory.

RollOverIfDateBoundaryCrossing is called before the base class (FileAppender) ActivateOptions method is called. Therefore the File property has not yet been converted to a fully qualified path. If the current directory is not the ApplicationBase directory (e.g. when running under ASP.NET) then the RollFile call will fail with the message "Source does not exist" in the internal debug log.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (LOG4NET-25) RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

Posted by "Nicko Cadell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LOG4NET-25?page=history ]
     
Nicko Cadell resolved LOG4NET-25:
---------------------------------

     Resolution: Fixed
    Fix Version: 1.2.10
                     (was: 1.2.9)

Fixed RollingFileAppender by fully qualifying the File property value before calling ExistingInit in the ActivateOptions method.

> RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required
> -----------------------------------------------------------------------
>
>          Key: LOG4NET-25
>          URL: http://issues.apache.org/jira/browse/LOG4NET-25
>      Project: Log4net
>         Type: Bug
>   Components: Appenders
>     Versions: 1.2.9
>     Reporter: Nicko Cadell
>      Fix For: 1.2.10

>
> RollingFileAppender fails if RollOverIfDateBoundaryCrossing required and current directory is not ApplicationBase directory.
> RollOverIfDateBoundaryCrossing is called before the base class (FileAppender) ActivateOptions method is called. Therefore the File property has not yet been converted to a fully qualified path. If the current directory is not the ApplicationBase directory (e.g. when running under ASP.NET) then the RollFile call will fail with the message "Source does not exist" in the internal debug log.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira