You are not logged in.
Hi Arnaud,
The way (so called per-family) the TSynLog class works is somehow confusing, and that way is not suitable in some cases. Is there a way to control the target file name and the instantiation of a TSynLog object?
What I want is something like this:
var
myLog: TSynLog;
begin
myLog := TSynLog.Create();
myLog.FileName := 'my log file for this operation at this time';
myLog.Log(sllInfo, 'starting...');
//...
myLog.Release;
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Sounds like this feature request:
http://synopse.info/fossil/tktview?name=d3f5197f3c
Offline
Yes. For now until you are adding any new additions to the logging library, looks like I can override TSynLog.CreateLogWriter() to archive what I need...
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline