Changeset 72 for trunk/Packages/Common/UDebugLog.pas
- Timestamp:
- Mar 6, 2016, 12:10:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UDebugLog.pas
r59 r72 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, SpecializedList, SyncObjs ;8 Classes, SysUtils, FileUtil, SpecializedList, SyncObjs, LazFileUtils; 9 9 10 10 type … … 104 104 if ExtractFileDir(FileName) <> '' then 105 105 ForceDirectoriesUTF8(ExtractFileDir(FileName)); 106 if FileExistsUTF8(FileName) then LogFile := TFileStream.Create( UTF8Decode(FileName), fmOpenWrite)107 else LogFile := TFileStream.Create( UTF8Decode(FileName), fmCreate);106 if FileExistsUTF8(FileName) then LogFile := TFileStream.Create(FileName, fmOpenWrite) 107 else LogFile := TFileStream.Create(FileName, fmCreate); 108 108 LogFile.Seek(0, soFromEnd); 109 109 Text := FormatDateTime('hh:nn:ss.zzz', Now) + ': ' + Text + LineEnding;
Note:
See TracChangeset
for help on using the changeset viewer.