delphimvcframework/samples/60_logging_inside_dll/mydll.dpr
Daniele Teti 55500acdf9 Squashed 'lib/loggerpro/' content from commit d1e0db6e
git-subtree-dir: lib/loggerpro
git-subtree-split: d1e0db6e93724e5fd825f0a8c02151d60450f98f
2023-02-27 12:26:25 +01:00

32 lines
423 B
ObjectPascal

library mydll;
uses
LoggerPro.GlobalLogger,
MyThreadU in 'MyThreadU.pas';
var
lObj: IMyInterface = nil;
procedure Init;
begin
lObj := TMyObject.Create;
end;
procedure DeInit;
begin
lObj := nil;
ReleaseGlobalLogger; // This is required inside dll and ISAPI!!
end;
procedure DoSomething;
begin
Log.Debug('This is a log message from the DLL', 'DLL');
end;
exports
Init, DeInit, DoSomething;
begin
end.