Root > Reference > Main routines > IsEurekaLogActiveInThread

Function IsEurekaLogActiveInThread

Previous pageReturn to chapter overviewNext page   

Indicates if EurekaLog is active or disabled in the specified thread.







Code (Delphi)

function IsEurekaLogActiveInThread(

const AThreadID: Cardinal = 0

): Boolean;



AThreadID [in, optional]

TID - thread ID which EurekaLog's status should be checked. Use 0 (default) for current thread.


Return value

True if EurekaLog is active in the specified thread, False - otherwise.



This is per-thread version of IsEurekaLogActive function.


This is a per-thread status. If you want to check global activation status - use IsEurekaLogActive function.


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



This function doesn't respect global activation status.



This is a wrapper for EThreadsManager.IsEurekaLogActiveInThread function.




Code (Delphi)

if IsEurekaLogActiveInThread 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: