bool IsDiagnostic { get; set; }

robot_2Generated
code_blocksInput

Description

The IsDiagnostic property of the LogEvent struct indicates whether the log event is intended for diagnostic purposes. This property is read-only and returns a boolean value.

Usage

Use the IsDiagnostic property to determine if a log event is specifically for diagnostic purposes. This can be useful for filtering logs when you only want to process or display diagnostic information.

Example

// Example of using the IsDiagnostic property
LogEvent logEvent = GetLogEvent();

if (logEvent.IsDiagnostic)
{
    // Handle diagnostic log event
    ProcessDiagnosticLog(logEvent);
}
else
{
    // Handle regular log event
    ProcessRegularLog(logEvent);
}