Open sandboxFocus

Method Log

Log(LogLevel, LogRecordKind, string, string, UnsafeString, UnsafeString, int)

Emits a log record.

Declaration
[NonEvent]
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.

int indentLevel

Indentation level.