Skip to content

Commit d09f217

Browse files
committed
[log] fixed filename in linux issue #97
1 parent 9ca3226 commit d09f217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Quick.Log.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{ ***************************************************************************
22
3-
Copyright (c) 2016-2019 Kike Pérez
3+
Copyright (c) 2016-2022 Kike Pérez
44
55
Unit : Quick.Log
66
Description : Threadsafe Log
77
Author : Kike Pérez
88
Version : 1.19
99
Created : 10/04/2016
10-
Modified : 21/01/2019
10+
Modified : 10/02/2022
1111
1212
This file is part of QuickLib: https://github.com/exilon/QuickLib
1313
@@ -173,7 +173,7 @@ function OSVersion: String;
173173

174174
function TQuickLog.SetLog(logname : string; AddCurrentDateToFileName : Boolean; LimitSizeInMB : Integer = 0) : Boolean;
175175
begin
176-
if logname = '' then logname := TPath.GetDirectoryName(ParamStr(0)) + '\' + TPath.GetFileNameWithoutExtension(ParamStr(0)) + '.log';
176+
if logname = '' then logname := TPath.GetDirectoryName(ParamStr(0)) + PathDelim + TPath.GetFileNameWithoutExtension(ParamStr(0)) + '.log';
177177
fFMTName := ExtractFilePath(logname) + ExtractFileNameWithoutExt(logname) + '_%s' + ExtractFileExt(logname);
178178
fHideHour := True;
179179
fCurrentDateToFileName := AddCurrentDateToFileName;

0 commit comments

Comments
 (0)