PDA

View Full Version : EurekaLog run-time activation and more...


admin
01-Oct-2005, 03:34 PM
It's possible activate/deactivate EurekaLog at run-time using the
SetEurekaLogState procedure.


Example:

uses
ExceptionLog; // The required unit...

begin
...
SetEurekaLogState(False); // Disable EurekaLog.
SetEurekaLogState(True); // Enable EurekaLog.
...
end;


It's also possible activate/deactivate EurekaLog at run-time only for a
specified thread using the SetEurekaLogInThread procedure.


Example:

uses ExceptionLog; // The required unit...

begin
...
SetEurekaLogInThread(GetCurrentThreadID, False); // Disable EurekaLog
in the current Thread.
SetEurekaLogInThread(GetCurrentThreadID, True); // Enable EurekaLog
in the current Thread.
...
end;


Top check at run-time if EurekaLog is installed it's available the
IsEurekaLogInstalled function.


Example:


uses
ExceptionLog; // The required unit...

begin
...
ok := IsEurekaLogInstalled;
...
end;


--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.