Root > Reference > Main routines > IsEurekaLogActiveInThread

Function IsEurekaLogActiveInThread

Previous pageReturn to chapter overviewNext page   

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

 

Unit

ExceptionLog7

 

Syntax

 

Code (Delphi)

function IsEurekaLogActiveInThread(

const AThreadID: Cardinal = 0

): Boolean;

 

Parameters

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.

 

Remarks

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.

 

Caution!

This function doesn't respect global activation status.

 

Note

This is a wrapper for EThreadsManager.IsEurekaLogActiveInThread function.

 

Examples

 

Code (Delphi)

if IsEurekaLogActiveInThread then

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

raise Exception.Create('Error message')

else

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

raise Exception.Create('Error message');

 

See also

_InstallEurekaLog
_IsEurekaLogActive



Send feedback... Build date: 2024-12-19
Last edited: 2024-12-19
PRIVACY STATEMENT
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: https://www.eurekalog.com/help/eurekalog/topic_function_exceptionlog7_iseurekalogactiveinthread.php