DebugContext Class (BCL)
Represents the current debugging level for the application. This class sets the debug mode and contains methods for handling debug warnings, errors, and informational trace messages. The Trace, Warn, and Error methods are virtual so this method may be derived.
System.Object
**** Microsoft.CommerceServer.Runtime.Diagnostics.DebugContext
Microsoft.CommerceServer.Runtime.Diagnostics.ConsoleDebugContext
Microsoft.CommerceServer.Runtime.Diagnostics.WebDebugContext
Protected Instance Constructor
Constructor | Description |
---|---|
DebugContext Constructor | Creates a new instance of the DebugContext class. |
Public Instance Methods
Method | Description |
---|---|
Error(String, String) | Records an error. |
Error(String, String, Exception) | Records an error and an exception. |
Trace(String, String) | Records an informational trace message. |
Warn(String, String) | Records a warning message. |
Warn(String, String, Exception) | Records a warning message and an exception. |
Public Instance Properties
Property | Description |
---|---|
DebugMode | Gets the current debug mode. |
IsDebugMode | Gets a Boolean that is set to True if the current debug mode is set to either Debug or the superset Checked mode. |
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.