FocusContextualLoggerTarget
public class FocusContextualLoggerTarget : ContextualLoggerTarget
The contextual logger target implementation used by default, to support the Focus feature of Flint.
This will use the current FocusSelection
to work out whether or not Focus is in effect, and if it is
whether or not events should be logged.
When Focus is active, it will also drop the effective log level to debug
so that everything related to your
focused areas is output.
Then focus is not active, a standed log level threshold is applied.
-
Undocumented
Declaration
Swift
public var level: LoggerLevel
-
Undocumented
Declaration
Swift
public func setLevel(for topic: TopicPath, to level: LoggerLevel?)
-
Declaration
Swift
public func log(level: LoggerLevel, context: LogEventContext, content: @escaping @autoclosure () -> String)