The Labs \ Source Viewer \ SSCLI \ System.Diagnostics \ LoggingLevels

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. namespace System.Diagnostics
  16. {
  17.    
  18.     using System;
  19.     // Constants representing the importance level of messages to be logged.
  20.     // This level can be used to organize messages, and also to filter which
  21.     // messages are displayed.
  22.     //
  23.     // An attached debugger can enable or disable which messages will
  24.     // actually be reported to the user through the COM+ debugger
  25.     // services API. This info is communicated to the runtime so only
  26.     // desired events are actually reported to the debugger.
  27.     // NOTE: The following constants mirror the constants
  28.     // declared in the EE code (DebugDebugger.h). Any changes here will also
  29.     // need to be made there.
  30.     // Constants representing the importance level of messages to be logged.
  31.     // This level can be used to organize messages, and also to filter which
  32.     // messages are displayed.
  33.     [Serializable()]
  34.     internal enum LoggingLevels
  35.     {
  36.         TraceLevel0 = 0,
  37.         TraceLevel1 = 1,
  38.         TraceLevel2 = 2,
  39.         TraceLevel3 = 3,
  40.         TraceLevel4 = 4,
  41.        
  42.         StatusLevel0 = 20,
  43.         StatusLevel1 = 21,
  44.         StatusLevel2 = 22,
  45.         StatusLevel3 = 23,
  46.         StatusLevel4 = 24,
  47.        
  48.        
  49.         WarningLevel = 40,
  50.        
  51.         ErrorLevel = 50,
  52.        
  53.         PanicLevel = 100
  54.     }
  55.    
  56. }

Developer Fusion