PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Source Class / Log­Source Properties / Log­Source.​Failure Property

LogSource.Failure Property

Exposes methods that allow to write messages and open activities with the default failure severity of the current LogSource. The default severity is Error, unless it has been overwritten by the WithLevels(LogLevel, LogLevel) method.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public LogLevelSource Failure { get; }

Property Value

Type: LogLevelSource

This property is properly optimized. Subsequent calls will return the same instance.

See Also