PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­SourceWith­Level
Open sandboxFocus

LogSource.WithLevel Method

WithLevel(LogLevel)

Exposes methods that allow to write messages and open activities with a specified LogLevel.

Declaration
public LogLevelSource WithLevel(LogLevel level)
Parameters
Type Name Description
LogLevel level

The desired LogLevel.

Returns
Type Description
LogLevelSource

A fluent API object that allows to write messages with the specified level.