-
Notifications
You must be signed in to change notification settings - Fork 0
net472_EventLogHelper.Enums_LoggingLevel
dparvin edited this page Sep 10, 2025
·
1 revision
Defines the global logging level (threshold) that controls which log entries are written to the Windows Event Log.
public enum LoggingLevel| name | value | description |
|---|---|---|
| None | 99 |
No log entries will be written. |
| Verbose | 0 |
Write all log entries, including diagnostic Verbose entries. |
| Normal | 1 |
Write Info, Warning, Error, and Critical entries; suppress Verbose. |
| Minimal | 2 |
Write Warning, Error, and Critical entries; suppress Info and Verbose. |
| Error | 3 |
Write Error and Critical entries only. |
| Critical | 4 |
Write only Critical entries. |
This value acts as a filter: only log entries with a LoggingSeverity greater than or equal to the current LoggingLevel will be written.
For example, if the CurrentLoggingLevel is Normal, then entries with severities of Info, Warning, Error, or Critical are logged, while Verbose messages are suppressed.
The levels are ordered from least to most restrictive:
- Verbose (0) – All messages are written.
-
Normal (1) – Suppresses
Verbose, writes Info and higher. -
Minimal (2) – Suppresses
VerboseandInfo, writes Warning and higher. - Error (3) – Writes only Error and Critical entries.
- Critical (4) – Writes only Critical entries.
- None (99) – No entries are written.
- namespace EventLogHelper.Enums
- assembly EventLogHelper
- LoggingLevel.cs