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: 2023.0.3.0 (2023.0.3.0)
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.