PostSharpEventSource.Log Method |
Emits a log record.
Namespace: PostSharp.Patterns.Diagnostics.Backends.EventSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public void Log( LogLevel logLevel, LogRecordKind recordKind, string role, string type, UnsafeString contextDescription, UnsafeString message, int indentLevel )
Parameters
- logLevel
- Type: PostSharp.Patterns.Diagnostics.LogLevel
Log level. - recordKind
- Type: PostSharp.Patterns.Diagnostics.LogRecordKind
Record kind. - role
- Type: System.String
Logging role (see LoggingRoles). - type
- Type: System.String
Full name of the type emitting the record. - contextDescription
- Type: PostSharp.Patterns.Formatters.UnsafeString
Context description. - message
- Type: PostSharp.Patterns.Formatters.UnsafeString
Message. - indentLevel
- Type: System.Int32
Indentation level.