LogMessage Method
Log a message to the logging system.
Syntax
void LogMessage(
System.string category,
System.string subCategory,
System.string message,
System.Diagnostics.TraceEventType eventType,
System.int priorityId,
System.Nullable<DateTime> startTimeUTC,
System.Collections.Generic.IDictionary<string,object> properties
)Sub LogMessage( _
ByVal category As System.String, _
ByVal subCategory As System.String, _
ByVal message As System.String, _
ByVal eventType As System.Diagnostics.TraceEventType, _
ByVal priorityId As System.Integer, _
ByVal startTimeUTC As System.Nullable(Of Date), _
ByVal properties As System.Collections.Generic.IDictionary(Of String,Object) _
) Parameters
| Name | Description |
|---|---|
| category | The main category. |
| subCategory | An optional sub category. |
| message | The message to be logged. |
| eventType | System.Diagnostics.TraceEventType |
| priorityId | Priority to assign to the message. |
| startTimeUTC | UTC start of the of the message. Gives user (optionally) the ability to assign the start time. |
| properties | Optional list of property name/object pairs to assicated to the log message. |