Log
public class Log : Logger
This is the “Default” logger that you can use if you don’t want to create a class logger. It also contains the singleton instance of the Root Logger that LogFactory refers to
-
reassignable, but reassigning the root logger may break things
Declaration
Swift
public static var singletonInstance: Log
-
Declaration
Swift
public static func fatal(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func error(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func warn(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func info(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func debug(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func verbose(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: Int = #line, className: String? = nil)
-
Declaration
Swift
public static func createForClass(_ klass: Any.Type) -> Logger
-
Declaration
Swift
public static var configuration: LogConfiguration { get set }
-
Declaration
Swift
public func write(level: LogLevel, message: (() -> String), parameters: LogParameters)
-
Declaration
Swift
public var level: LogLevel
-
Declaration
Swift
public func createForClass(_ klass: Any.Type) -> Logger
-
Declaration
Swift
public var configuration: LogConfiguration { get set }