Wrong calculation of number in FileSizeRollOverStrategy.GetFileName()


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));


schizoidboy wrote Sep 8, 2007 at 4:16 AM

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

schizoidboy wrote Sep 9, 2007 at 12:51 AM