danieleteti / loggerpro

An modern and pluggable logging framework for Delphi
Apache License 2.0
353 stars 91 forks source link

MaxBackupFileCount always equal 1 #61

Closed zinpub closed 1 year ago

zinpub commented 2 years ago

Maybe must be Max?

constructor TLoggerProFileAppenderBase.Create(aMaxBackupFileCount: Integer; aMaxFileSizeInKiloByte: Integer; aLogsFolder: string; aFileAppenderOptions: TFileAppenderOptions; aLogFileNameFormat: string; aLogFormat: string; aEncoding: TEncoding); begin inherited Create(ALogFormat); fLogsFolder := aLogsFolder;
fMaxBackupFileCount:= Min(1, aMaxBackupFileCount); fMaxFileSizeInKiloByte := aMaxFileSizeInKiloByte; fLogFileNameFormat := aLogFileNameFormat;

luebbe commented 2 years ago

You're obviously right. This is a result of #60 where I wrote wrong example code.