diff options
Diffstat (limited to 'src/mscorlib/src/System/Diagnostics/LoggingLevels.cs')
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/LoggingLevels.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/LoggingLevels.cs b/src/mscorlib/src/System/Diagnostics/LoggingLevels.cs new file mode 100644 index 0000000000..0eea0507ec --- /dev/null +++ b/src/mscorlib/src/System/Diagnostics/LoggingLevels.cs @@ -0,0 +1,45 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Diagnostics { + + using System; + // Constants representing the importance level of messages to be logged. + // This level can be used to organize messages, and also to filter which + // messages are displayed. + // + // An attached debugger can enable or disable which messages will + // actually be reported to the user through the COM+ debugger + // services API. This info is communicated to the runtime so only + // desired events are actually reported to the debugger. + // NOTE: The following constants mirror the constants + // declared in the EE code (DebugDebugger.h). Any changes here will also + // need to be made there. + // Constants representing the importance level of messages to be logged. + // This level can be used to organize messages, and also to filter which + // messages are displayed. + [Serializable] + internal enum LoggingLevels + { + TraceLevel0 = 0, + TraceLevel1 = 1, + TraceLevel2 = 2, + TraceLevel3 = 3, + TraceLevel4 = 4, + + StatusLevel0 = 20, + StatusLevel1 = 21, + StatusLevel2 = 22, + StatusLevel3 = 23, + StatusLevel4 = 24, + + + WarningLevel = 40, + + ErrorLevel = 50, + + PanicLevel = 100, + } + +} |