PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Event­Source Namespace/Post­Sharp­Event­Source Class/Post­Sharp­Event­Source Methods/Post­Sharp­Event­Source.​Log Method

PostSharpEventSource.Log Method

Emits a log record.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.EventSource
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public void Log(
	LogLevel logLevel,
	LogRecordKind recordKind,
	string role,
	string type,
	UnsafeString contextDescription,
	UnsafeString message,
	int indentLevel
)

Parameters

logLevel
Type: PostSharp.Patterns.Diagnostics.LogLevel
Log level.
recordKind
Type: PostSharp.Patterns.Diagnostics.LogRecordKind
Record kind.
role
Type: System.String
Logging role (see LoggingRoles).
type
Type: System.String
Full name of the type emitting the record.
contextDescription
Type: PostSharp.Patterns.Formatters.UnsafeString
Context description.
message
Type: PostSharp.Patterns.Formatters.UnsafeString
Message.
indentLevel
Type: System.Int32
Indentation level.
See Also