Issue Details (XML | Word | Printable)

Key: LOG4NET-25
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Nicko Cadell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

Created: 17/Apr/05 09:26 AM   Updated: 23/Jul/05 05:01 AM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Issue Links:
Duplicate
 

Resolution Date: 17/Apr/05 09:36 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #312271 Sun Apr 17 00:31:49 UTC 2005 nicko Fix LOG4NET-25. RollingFileAppender fails if RollOverIfDateBoundaryCrossing required and current directory is not ApplicationBase directory.
Files Changed
MODIFY /logging/log4net/trunk/src/Appender/RollingFileAppender.cs

Nicko Cadell added a comment - 17/Apr/05 09:36 AM
Fixed RollingFileAppender by fully qualifying the File property value before calling ExistingInit in the ActivateOptions method.

Nicko Cadell made changes - 17/Apr/05 09:36 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Fix Version/s 1.2.10 [ 11128 ]
Fix Version/s 1.2.9 [ 11092 ]
Status Open [ 1 ] Resolved [ 5 ]
Nicko Cadell added a comment - 23/Jul/05 05:01 AM
Fixed by LOG4NET-25

Nicko Cadell made changes - 23/Jul/05 05:01 AM
Link This issue is duplicated by LOG4NET-41 [ LOG4NET-41 ]
Repository Revision Date User Message
ASF #312303 Sun Aug 14 21:41:19 UTC 2005 nicko Fix LOG4NET-25. Ensure that m_scheduledFilename is not built until after File has been set to fully qualified path
Files Changed
MODIFY /logging/log4net/trunk/src/Appender/RollingFileAppender.cs