You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by "Helbig, Dirk (EXTERN: HUD)" <ex...@volkswagen.de> on 2005/07/29 09:20:54 UTC

RollingFileAppender does sometimes not work

Hi,

I have the latest version of log4net from cvs, but the RollingFileAppender
does sometimes not roll the logfiles.
Here is the debug-log:
log4net: RollingFileAppender: Moving
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-trace.txt] ->
[..\\LogFiles\\cc5-trace.txt.20050728]
log4net:ERROR [RollingFileAppender] Exception while rolling file
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-trace.txt] ->
[..\\LogFiles\\cc5-trace.txt.20050728]
System.IO.DirectoryNotFoundException: Ein Teil des Pfades
..\\LogFiles\\cc5-trace.txt.20050728 konnte nicht gefunden werden.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.File.Move(String sourceFileName, String destFileName)
   at log4net.Appender.RollingFileAppender.RollFile(String fromFile, String
toFile)
log4net: FileAppender: Opening file for writing
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-trace.txt] append [False]
log4net: RollingFileAppender: Moving
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-error.txt] ->
[..\\LogFiles\\cc5-error.txt.20050728]
log4net:ERROR [RollingFileAppender] Exception while rolling file
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-error.txt] ->
[..\\LogFiles\\cc5-error.txt.20050728]
System.IO.DirectoryNotFoundException: Ein Teil des Pfades
..\\LogFiles\\cc5-error.txt.20050728 konnte nicht gefunden werden.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.File.Move(String sourceFileName, String destFileName)
   at log4net.Appender.RollingFileAppender.RollFile(String fromFile, String
toFile)
log4net: FileAppender: Opening file for writing
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-error.txt] append [False]
log4net: RollingFileAppender: Moving
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-info.txt] ->
[..\\LogFiles\\cc5-info.txt.20050728]
log4net:ERROR [RollingFileAppender] Exception while rolling file
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-info.txt] ->
[..\\LogFiles\\cc5-info.txt.20050728]
System.IO.DirectoryNotFoundException: Ein Teil des Pfades
..\\LogFiles\\cc5-info.txt.20050728 konnte nicht gefunden werden.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.File.Move(String sourceFileName, String destFileName)
   at log4net.Appender.RollingFileAppender.RollFile(String fromFile, String
toFile)
log4net: FileAppender: Opening file for writing
[D:\Projekte\CarConfigurators\CC5\LogFiles\cc5-info.txt] append [False]
log4net: Hierarchy: Shutdown called on Hierarchy
[log4net-default-repository]

I have an ASP.NET-application with .NET 1.1 SP 1

I hope you could fix the bug as soon as possible.

Thanks, Dirk