Knowledgebase: FAQ
How can I determine if EurekaLog is active or not?
Posted by Alexander Alexeev on 02 April 2009 10:32
We recommend to use IFDEF-checks, for example:

{$IFDEF EUREKALOG}
uses
ExceptionLog;
{$ENDIF}

{$IFDEF EUREKALOG}
CurrentEurekaLogOptions ...
{$ENDIF}

Alternatively there are functions (in ExceptionLog7 unit) like

function IsEurekaLogActive: Boolean;
function IsEurekaLogActiveInThread(ThreadID: DWord): Boolean;
function IsEurekaLogInstalled: Boolean;

But that means that you need to include EL's code in your application even though EL was disabled for your project.
For description of the functions see our documentation at https://www.eurekalog.com/help/eurekalog/

Note, that there is a difference between "project compiled without EL" and "project compiled with EL, but EL is not active".

Help Desk Software by Kayako Resolve