PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Event­SourcePost­Sharp­Event­SourceLog
Open sandboxFocus

PostSharpEventSource.Log Method

Log(LogLevel, LogRecordKind, String, String, UnsafeString, UnsafeString, Int32)

Emits a log record.

Declaration
public void Log(LogLevel logLevel, LogRecordKind recordKind, string role, string type, UnsafeString contextDescription, UnsafeString message, int indentLevel)
Parameters
Type Name Description
LogLevel logLevel

Log level.

LogRecordKind recordKind

Record kind.

String role

Logging role (see LoggingRoles).

String type

Full name of the type emitting the record.

UnsafeString contextDescription

Context description.

UnsafeString message

Message.

System.Int32 indentLevel

Indentation level.