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 | |
---|---|---|
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
Name | Description | |
---|---|---|
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. |
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