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.

See Also

Logger Class

Logger Members

Write Overload

Microsoft.Practices.EnterpriseLibrary.Logging Namespace