PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Log­Source/With­Level
Open sandboxFocus

Method WithLevel

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.