LoggerTextOutputStreamPipe

public struct LoggerTextOutputStreamPipe : Pipe

A pipe for sending logs to a TextOutputStream

  • Default init

    Declaration

    Swift

    public init(_ stream: TextOutputStream)

    Parameters

    _

    Our stream to pipe to

  • Our main log handling pipe method

    Declaration

    Swift

    public func handle(_ formattedLogLine: String)

    Parameters

    _

    The formatted log to handle

  • Pipe logs to Standard Output (stdout)

    Declaration

    Swift

    public static var standardOutput: LoggerTextOutputStreamPipe { get }
  • Pipe logs to Standard Error (stderr)

    Declaration

    Swift

    public static var standardError: LoggerTextOutputStreamPipe { get }