Root > Reference > Main routines > IsEurekaLogActive

Function IsEurekaLogActive

Previous pageReturn to chapter overviewNext page   

Indicates if EurekaLog is active or disabled in this application.







Code (Delphi)

function IsEurekaLogActive: Boolean;


Return value

True if EurekaLog is active, False - otherwise.



EurekaLog is considered to be active if EurekaLog should do its work. You can control EurekaLog activation by calling SetEurekaLogState procedure.


If EurekaLog was not installed - then it's always disabled (not active).


This is a global status for all application. If you want to check per-thread activation status - use IsEurekaLogActiveInThread function.


If you want to change activation status (enable or disable EurekaLog) - use SetEurekaLogState for global status and SetEurekaLogStateInThread for per-thread status.


By default, EurekaLog is active at startup (if it was installed).



This function doesn't respect per-thread activation status. Thus, if EurekaLog was disabled in one thread only - this function will still returns True.


This function respects "installed" status, so there is no need for additional call to IsEurekaLogInstalled function.



This function is for the clients only. EurekaLog's code should use _IsEurekaLogActive instead.



This is a wrapper for IsEurekaLogActiveEBase.IsEurekaLogActive





Code (Delphi)

if IsEurekaLogActive then

// this exception will be handled by EurekaLog, since EurekaLog is enabled

raise Exception.Create('Error message')


// this exception will not be handled by EurekaLog, since EurekaLog is disabled

raise Exception.Create('Error message');


See also


Send feedback... Build date: 2022-03-28
Last edited: 2022-03-28
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.

Permanent link to this article: