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 3:16 AM

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

schizoidboy wrote Sep 8, 2007 at 11:51 PM