Open sandboxFocus

Method WithLevel

WithLevel(LogLevel)

Gets a LogLevelSource that exposes methods 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 writing messages with the specified level.

Remarks

This method is properly optimized. Subsequent calls with the same parameter value will return the same instance.