1

Resolved

Wrong calculation of number in FileSizeRollOverStrategy.GetFileName()

description

The maximum integer number is not correctly calculated if the path to the logfile directory contains digit(s). The code GetFileName() should be changed to:
 
    public string GetFileName(string fileName, LoggerSeverity severity, DateTime timestamp, object entry, object[] formatParameters, string logLine)
    {
            ...
            int foundNumber = StringUtilities.ExtractFirstNumber(Path.GetFileName(foundFile));
            ...
    }

comments

schizoidboy wrote Sep 8, 2007 at 3:16 AM

This is a bug, thank you! I will be putting this into the next release 0.2.16.0...

schizoidboy wrote Sep 8, 2007 at 11:51 PM