PostSharp 5.0 / / Post­Sharp Documentation / 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: 5.0.55.0 (5.0.55.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
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