FileArchiving doesn't work as describe in the
documentation.
Normally, when IsArchivingEnabled = true and the file
size reached MaximumFileSize, an archive would be
created in the ArchiveDirectoryPath.
In fact, archiving only work if FilePath contains a pattern
with a temporal argument for example : log{month}
It corresponds to isFilePathStatic = false. But
isArchivingEnabled should be checked event if
isFilePathStatic = true.
In FileLogger.cs, in one hand this method is called :
>> protected override void Write(Event[] events, int
length)
and no check is made for isArchivingEnabled and in the
other hand it exist the method (but not called when
FileLogger is included in a CompositeLogger with
BufferingEnabled).
>> protected override void Write(NSpring.Logging.Event
_event)
call ArchiveFile (or move explicitly) when
isFilePathStatic=true.
----------------------------
In addition, a suggestion is the possibility to the user to
define the timestamp pattern added to the archive
filename. Currently this is a 20-digits hard-coded value !!!
Hard to decode for an human being :-)