QuickLogger icon indicating copy to clipboard operation
QuickLogger copied to clipboard

Logger in a TThread.Execute does not output

Open FIFernandes opened this issue 2 years ago • 1 comments

I have a logger in a TThread.Execute in Delphi windows service. The logger does not output to a text file. It outputs in the TService just after it is installed.

In the used I have Quick.Logger, Quick.Threads, Quick.Logger.Provider.Files,

Logger.Succ( 'Worker started ' + TimeToStr( Now ) );

Thanks

FIFernandes avatar Jul 21 '22 08:07 FIFernandes

You need to add provider to logger before use Logger.Succ

Logger.Providers.Add(GlobalLogFileProvider);
GlobalLogFileProvider .Enable := True;

exilon avatar Jul 25 '22 10:07 exilon