ContextSpecificLogger
public protocol ContextSpecificLogger : AnyObject
The is the high level logger interface that uses the same context for all events, for passing to actions and other subsystems where the user’s feature context is known.
You obtain one of these from a ContextualLoggerFactory
, although typically Flint will automatically provide these
to your Action
(s) in the ActionContext
.
-
Undocumented
Declaration
Swift
var level: LoggerLevel { get }
-
The name of the logger factor that created this logger, e.g.
production
Declaration
Swift
var ownerName: String { get }
-
The context for this logger. Includes the Flint
ActionSession
name and theTopicPath
of the event (this is usually based on the Feature & Action calling into this logger).Declaration
Swift
var context: LogEventContext { get }
-
Called to log
info
level eventsDeclaration
Swift
func info(_ content: @escaping @autoclosure () -> String)
-
Called to log
error
level eventsDeclaration
Swift
func error(_ content: @escaping @autoclosure () -> String)
-
Called to log
warning
level eventsDeclaration
Swift
func warning(_ content: @escaping @autoclosure () -> String)
-
Called to log
debug
level eventsDeclaration
Swift
func debug(_ content: @escaping @autoclosure () -> String)