Share via


ConsoleDebugContext Class (BCL)

The ConsoleDebugContext class represents the current debugging level for a non-Web based application. The class contains methods for handling debug warnings, errors, and informational trace messages. This class may be derived, as the Trace, Warn, and Error methods are declared virtual.

System.Object
   Microsoft.CommerceServer.Runtime.Diagnostics.DebugContext
      Microsoft.CommerceServer.Runtime.Diagnostics.ConsoleDebugContext

Public Instance Constructor

Constructor Description
ConsoleDebugContext(DebugContext) Constructor Creates a new instance of the ConsoleDebugContext 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 (Inherited from DebugContext) Gets and sets the current debug mode.
IsDebugMode (Inherited from DebugContext) Gets a Boolean that is set to True if the current DebugMode property 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.