Partager via


Logging Class

Definition

Represents the logging class used by UII that implements a listening system to allow multiple listeners to hook in and log messages.

public ref class Logging abstract sealed
public static class Logging
type Logging = class
Public Class Logging
Inheritance
Logging

Properties

ErrorCount

Gets or sets the error count. (Incremented by every call to one of the Error() overloads.)

ShowErrors

Gets or sets a Boolean value that specifies whether error messages will be displayed in a messagebox. False by default.

TraceSwitchLevel

Gets the level of the trace switch.

Methods

Error(String, String)

Displays messages that represent a problem.

Error(String, String, Exception)

Displays messages that represent a problem.

Error(String, String, Object[])

Display messages that represent a problem.

Error(String, String, String)

Displays messages that represent a problem.

Info(String, String)

Displays messages that are useful, but do not represent a problem.

Info(String, String, Object[])

Displays messages that are useful, but do not represent a problem.

Information(String, String)

Displays messages that are useful, but do not represent a problem.

Trace(String)

Displays messages for debugging but not normal operation.

Trace(String, String)

Displays messages for debugging but not normal operation.

Trace(String, String, Object[])

Displays messages for debugging but not normal operation

TryInitialize()

Provides explicit initialization of logging listeners, rather than defering to first use of the Logging class. Use of this method is not required.

Warn(String, String)

Displays messages that may represent a problem.

Warn(String, String, Object[])

Displays messages that may represent a problem.

Applies to