You are not logged in.
Pages: 1
I can't figure out this code work properly. when I replace myLog1 with TSynLog it works.
var
myLog1,myLog2: TSynLog;
begin
myLog1 := TSynLog.Create();
myLog1.Family.Level := LOG_VERBOSE;
myLog1.Family.DestinationPath := 'D:\SynLog1\';
myLog1.Family.FileExistsAction := acAppend;
myLog1.Log(sllInfo, 'Logging initialized.');
end;
Last edited by anouri (2025-04-01 10:23:47)
Offline
Yes. Solved. thanks alot
for creating multiple file I am using multiple classes:
TDbLog = class(TSynLog); // Log for database operations
TApiLog = class(TSynLog); // Log for API calls
Is this correct ?
Last edited by anouri (2025-04-06 14:02:24)
Offline
Pages: 1