ConsoleTarget

open class ConsoleTarget : Target

Target class used for logging to unified logging system: i.e. console/Apple Log system facility.

  • Configuration struct assigned during initialization.

    Declaration

    Swift

    public let config: ConsoleTargetConfig
  • Initializes ConsoleTarget instance with provided ConsoleTargetConfig struct.

    Declaration

    Swift

    public init(_ config: ConsoleTargetConfig? = nil)

    Parameters

    config

    struct encapsulating logging preferences. Defaults to struct instance with defaults values.

  • Declaration

    Swift

    open func send(_ message: Message)