Open sandboxFocus

Method WithLevels

WithLevels(FlashtraceLevel, FlashtraceLevel)

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

Declaration
public FlashtraceSource WithLevels(FlashtraceLevel defaultLevel, FlashtraceLevel failureLevel)
Parameters
Type Name Description
FlashtraceLevel defaultLevel

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

FlashtraceLevel failureLevel

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

Returns
Type Description
FlashtraceSource

A new FlashtraceSource with the specified log levels.