Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

IfMaxLevelFragment

Make the current fragment conditional, only calling its output method if the record’s loggerLevel is maxLevel or lower
struct IfMaxLevelFragment<T> where T : LoggerFragment

Mentioned in

Overview

The sequence

Literal("IsDebugOrTrace").maxLevel(.debug)

will only include “IsDebugOrTrace” in the output when the log level is debug or lower.

This fragment is considered to not have content if the logging level is higher than than maxLevel.

Topics

Initializers

Instance Properties

Instance Methods

Relationships

Conforms To

See Also

Logger Fragments