Configuration

struct Configuration

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias OutputType = (_ target: TargetType, _ items: [String]) -> Void
  • Undocumented

    Declaration

    Swift

    public var formatter: Formatter
  • Undocumented

    Declaration

    Swift

    public var output: OutputType
  • Undocumented

    Declaration

    Swift

    public var logOptions: LogOptions
  • The designated way to instanciate a Configuration.

    Declaration

    Swift

    public init(formatter: Formatter = Formatter(),
                output: @escaping OutputType = defaultOutput,
                logOptions: LogOptions = .default)

    Parameters

    formatter

    An object holding all formatter closures available for customization.

    output

    A closure responsible for writing the given log entries into your log system. The default value writes entries to the debug console.

    logOptions

    A set of options you can use to customize which request component is logged.