PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Custom­Log­Record­Info Structure / Custom­Log­Record­Info Constructor

CustomLogRecordInfo Constructor

Note: This API is now obsolete.

Initializes a new CustomLogRecordInfo.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
[ObsoleteAttribute("There should be no need to create a CustomLogRecordInfo in user code.")]
public CustomLogRecordInfo(
	LoggingTypeSource source,
	LogLevel level,
	int parameterCount,
	LogRecordKind recordKind,
	CallerInfo callerInfo
)

Parameters

source
Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
Source type.
level
Type: PostSharp.Patterns.Diagnostics.LogLevel
Log level
parameterCount
Type: System.Int32
Number of parameters in the record text.
recordKind
Type: PostSharp.Patterns.Diagnostics.LogRecordKind
Kind of record.
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the code invoking the Logger class.
See Also