PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLog­Level­SourceEnabled­Or­Null
Open sandboxFocus

LogLevelSource.EnabledOrNull Property

EnabledOrNull

Returns the current LogLevelSource, or null if logging is not enabled for the current instance. This property allows to write conditional logging using the ?. operator.

Declaration
public LogLevelSource EnabledOrNull { get; }
Property Value
Type Description
LogLevelSource