Open sandboxFocus

Method WithLevels

WithLevels(LogLevel, LogLevel)

Returns a new LogSource based on the current instance, but overrides the default logging levels.

Declaration
public LogSource WithLevels(LogLevel defaultLevel, LogLevel failureLevel)
Parameters
Type Name Description
LogLevel defaultLevel

The LogLevel for the Default severity (also used for the start and success messages of activities).

LogLevel failureLevel

The LogLevel for the Failure severity (also used for the failure messages of activities).

Returns
Type Description
LogSource

A new LogSource with the specified log levels.