LoggingService

protocol LoggingService

Wraps a single logging statement implmentation

  • Wrap point for log API integration

    Declaration

    Swift

    func custom(level: LoggingLevel, message: @autoclosure () -> Any, file: String, function: String, line: Int, context: Any?)

    Parameters

    level

    LoggingLevel

    message

    Describable autoclosure

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such

  • todo(_:_:_:line:) Extension method

    Todo logging convenience

    Declaration

    Swift

    func todo(_ message: String,
              _ file: String = #file,
              _ function: String = #function,
              line: Int = #line)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

  • verbose(_:_:_:line:context:) Extension method

    Verbose logging wrapper

    Declaration

    Swift

    func verbose(_ message: @autoclosure () -> Any,
                 _ file: String = #file,
                 _ function: String = #function,
                 line: Int = #line,
                 context: Any? = nil)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such

  • debug(_:_:_:line:context:) Extension method

    Debug logging wrapper

    Declaration

    Swift

    func debug(_ message: @autoclosure () -> Any,
               _ file: String = #file,
               _ function: String = #function,
               line: Int = #line,
               context: Any? = nil)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such

  • info(_:_:_:line:context:) Extension method

    Info logging wrapper

    Declaration

    Swift

    func info(_ message: @autoclosure () -> Any,
              _ file: String = #file,
              _ function: String = #function,
              line: Int = #line,
              context: Any? = nil)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such

  • warning(_:_:_:line:context:) Extension method

    Warning logging wrapper

    Declaration

    Swift

    func warning(_ message: @autoclosure () -> Any,
                 _ file: String = #file,
                 _ function: String = #function,
                 line: Int = #line,
                 context: Any? = nil)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such

  • error(_:_:_:line:context:) Extension method

    Error logging wrapper

    Declaration

    Swift

    func error(_ message: @autoclosure () -> Any,
               _ file: String = #file,
               _ function: String = #function,
               line: Int = #line,
               context: Any? = nil)

    Parameters

    message

    String

    file

    File marker

    function

    Function marker

    line

    Line marker

    context

    If service requires such