다음을 통해 공유


Logging Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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

Namespace:   Microsoft.Uii.Common.Logging
Assembly:  Microsoft.Uii.Common.Logging (in Microsoft.Uii.Common.Logging.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Uii.Common.Logging.Logging

Syntax

public static class Logging
Public NotInheritable Class Logging

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static ErrorCount

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

System_CAPS_pubpropertySystem_CAPS_static ShowErrors

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

System_CAPS_pubpropertySystem_CAPS_static TraceSwitchLevel

Gets the level of the trace switch.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Error(String, String)

Displays messages that represent a problem.

System_CAPS_pubmethodSystem_CAPS_static Error(String, String, Exception)

Displays messages that represent a problem.

System_CAPS_pubmethodSystem_CAPS_static Error(String, String, Object[])

Display messages that represent a problem.

System_CAPS_pubmethodSystem_CAPS_static Error(String, String, String)

Displays messages that represent a problem.

System_CAPS_pubmethodSystem_CAPS_static Info(String, String)

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

System_CAPS_pubmethodSystem_CAPS_static Info(String, String, Object[])

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

System_CAPS_pubmethodSystem_CAPS_static Information(String, String)

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

System_CAPS_pubmethodSystem_CAPS_static Trace(String)

Displays messages for debugging but not normal operation.

System_CAPS_pubmethodSystem_CAPS_static Trace(String, String)

Displays messages for debugging but not normal operation.

System_CAPS_pubmethodSystem_CAPS_static Trace(String, String, Object[])

Displays messages for debugging but not normal operation

System_CAPS_pubmethodSystem_CAPS_static TryInitialize()

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

System_CAPS_pubmethodSystem_CAPS_static Warn(String, String)

Displays messages that may represent a problem.

System_CAPS_pubmethodSystem_CAPS_static Warn(String, String, Object[])

Displays messages that may represent a problem.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Uii.Common.Logging Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright