Logger.Write Method (Object, ICollection<String>, IDictionary<String, Object>)
Write a new log entry to a specific collection of categories with a dictionary of extended properties.
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,
IDictionary<string, Object> properties
)
'Declaration
Public Shared Sub Write (
message As Object,
categories As ICollection(Of String),
properties As IDictionary(Of String, Object)
)
public:
static void Write(
Object^ message,
ICollection<String^>^ categories,
IDictionary<String^, Object^>^ properties
)
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.
- properties
Type: System.Collections.Generic.IDictionary<String, Object>
Dictionary of key/value pairs to log.