Open sandboxFocus

Struct CustomLogRecordInfo

Stores information about a custom record, that is, a record emitted by the Logger class.

Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public readonly struct CustomLogRecordInfo

Constructors

Name Description
CustomLogRecordInfo(LoggingTypeSource, LogLevel, int, LogRecordKind, CallerInfo)

Initializes a new instance of the CustomLogRecordInfo struct.

Properties

Name Description
Attributes

Gets the CustomLogRecordAttributes.

CallerInfo

Gets information about the code that invokes the Logger class.

Data

Gets the properties of the CustomLogRecordInfo, typically specified as an instance of a well-known or anonymous CLR type.

Level

Gets the record level.

ParameterCount

Gets the number of parameters in the record text.

Properties

Gets the properties of the log records.

RecordKind

Gets the record kind.

Source

Gets the source type.