increased buffer size to 8kb, now rolls at proper filesize
This commit is contained in:
parent
afa47cad86
commit
fce718ece3
|
@ -38,7 +38,7 @@ Begin
|
||||||
|
|
||||||
MaxSize := Max * 1024;
|
MaxSize := Max * 1024;
|
||||||
MaxLogs := ML;
|
MaxLogs := ML;
|
||||||
BufSize := 4 * 1024;
|
BufSize := 8 * 1024;
|
||||||
CurLevel := Level;
|
CurLevel := Level;
|
||||||
PreFix := FN;
|
PreFix := FN;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ Var
|
||||||
Begin
|
Begin
|
||||||
If CurLevel < LogLevel Then Exit;
|
If CurLevel < LogLevel Then Exit;
|
||||||
|
|
||||||
If (MaxSize > 0) And (System.FileSize(LogFile.InFile) > MaxSize) Then Begin
|
If (MaxSize > 0) And (System.FileSize(LogFile.InFile) + LogFile.BufPos > MaxSize) Then Begin
|
||||||
LogFile.CloseStream;
|
LogFile.CloseStream;
|
||||||
|
|
||||||
FileErase (PreFix + '_' + strI2S(MaxLogs) + '.log');
|
FileErase (PreFix + '_' + strI2S(MaxLogs) + '.log');
|
||||||
|
|
Loading…
Reference in New Issue