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.
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.
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 of using the IsDiagnostic property LogEvent logEvent = GetLogEvent(); if (logEvent.IsDiagnostic) { // Handle diagnostic log event ProcessDiagnosticLog(logEvent); } else { // Handle regular log event ProcessRegularLog(logEvent); }