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 the TopicPath 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 events

    Declaration

    Swift

    func info(_ content: @escaping @autoclosure () -> String)
  • Called to log error level events

    Declaration

    Swift

    func error(_ content: @escaping @autoclosure () -> String)
  • Called to log warning level events

    Declaration

    Swift

    func warning(_ content: @escaping @autoclosure () -> String)
  • Called to log debug level events

    Declaration

    Swift

    func debug(_ content: @escaping @autoclosure () -> String)