DebugLogger

public struct DebugLogger
extension DebugLogger: Log

Default/debug logger.

Author

Zendesk
  • Set to log the file name in output

    Declaration

    Swift

    public static var logFileName: Bool
  • Set the log the class name, function and line number in output

    Declaration

    Swift

    public static var logSource: Bool
  • Set the log the thread name or Id in output

    Declaration

    Swift

    public static var logThreadName: Bool

Debug log

  • New DebugLogger.

    Declaration

    Swift

    public init(namespace: String, for clazz: Any, withLevel level: LogLevel)

    Parameters

    namespace

    the namespace for this log

    for

    the class using this log

    withLevel

    the log level for this log

  • /////////////////////////////////////////////////////////////////////////////

    Declaration

    Swift

    public func logit(file: StaticString,
                      line: Int,
                      function: StaticString,
                      level: LogLevel,
                      error: Error?,
                      msg: String,
                      args: [CVarArg])