Hello,

it seems that the Method of  System.IO.File GetLastWriteTime sometimes
returns the current time insted of the time the log file or directory was
last written to.
What i've don was this: I activated log4net internal logging and checked
the RollingFileAppender.cs file. It seems that everey time, log4net calls
GetLastWriteTime (in RollingFileAppender.RollOverIfDateBoundaryCrossing,
line 781 it gets the current time. If it then compares this result with the
current time (to decide if a new file should be created) theses times are
the same and therefore no new file is created for that reason.
Is this a known bug? (My system is a Win2003 server.)

Juergen



PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschäftsführer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

**********************************************************************
http://www.pta.de
Mit 1875 Erfahrungsberichten aus 41 Jahren erfolgreicher Projektarbeit!
**********************************************************************


PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschaeftsfuehrer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

Reply via email to