Logger.Write Method (Object, ICollection<String>, Int32)
Write a new log entry with a specific collection of categories and priority.
Namespace: Microsoft.Practices.EnterpriseLibrary.Logging
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public static void Write(
Object message,
ICollection<string> categories,
int priority
)
'Declaration
Public Shared Sub Write (
message As Object,
categories As ICollection(Of String),
priority As Integer
)
public:
static void Write(
Object^ message,
ICollection<String^>^ categories,
int priority
)
Parameters
- message
Type: System.Object
Message body to log. Value from ToString() method from message object.
- categories
Type: System.Collections.Generic.ICollection<String>
Category names used to route the log entry to a one or more trace listeners.
- priority
Type: System.Int32
Only messages must be above the minimum priority are processed.