Export (0) Print
Expand All

SPDiagnosticsServiceBase.WriteEvent method

Writes an event to the Windows application event log, if the event severity is above the configured threshold for the SPDiagnosticsCategory.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void WriteEvent(
	ushort id,
	SPDiagnosticsCategory category,
	EventSeverity severity,
	string output,
	params Object[] data
)

Parameters

id
Type: System.UInt16

The ID.

category
Type: Microsoft.SharePoint.Administration.SPDiagnosticsCategory

The category.

severity
Type: Microsoft.SharePoint.Administration.EventSeverity

The severity.

output
Type: System.String

The message. Optionally, the message may contain format placeholders so that the string can be passed to System.String.Format(string, Object[]) for formatting.

data
Type: []

The optional items to be replaced into the message format string.

Community Additions

ADD
Show:
© 2014 Microsoft