Logger
public class Logger
Java like logger.
-
Log levels.
See moreDeclaration
Swift
public enum Level : Int
-
Log record.
See moreDeclaration
Swift
public struct LogRecord
-
Get logger for name. Using the same name retrieves the same logger.
Declaration
Swift
public static func getLogger(name: String) -> Logger
-
Global logging level.
Declaration
Swift
public static var logLevel: Logger.Level
-
Log message.
Declaration
Swift
public func log(level: Level, classname: String = #file, method: String = #function, message: String)
-
Log message.
Declaration
Swift
public func log(level: Level, classname: String = #file, method: String = #function, message: String, parameter: Any?)
-
Log message.
Declaration
Swift
public func log(level: Level, classname: String = #file, method: String = #function, message: String, parameters: [Any?])
-
Log severe message.
Declaration
Swift
public func severe(classname: String = #file, method: String = #function, message: String)
-
Log information message.
Declaration
Swift
public func info(classname: String = #file, method: String = #function, message: String)
-
Log fine message.
Declaration
Swift
public func fine(classname: String = #file, method: String = #function, message: String)
-
Log finest message.
Declaration
Swift
public func finest(classname: String = #file, method: String = #function, message: String)
-
Log entering method message. Uses finest level.
Declaration
Swift
public func entering(classname: String = #file, method: String = #function)
-
Log entering method message. Uses fine level.
Declaration
Swift
public func entering(classname: String = #file, method: String = #function, parameter: Any?)
-
Log entering method message. Uses fine level.
Declaration
Swift
public func entering(classname: String = #file, method: String = #function, parameters: [Any?])
-
Log exiting method message. Uses fine level.
Declaration
Swift
public func exiting(classname: String = #file, method: String = #function)
-
Log entering method message. Uses fine level.
Declaration
Swift
public func exiting(classname: String = #file, method: String = #function, parameter: Any?)
-
Log entering method message. Uses fine level.
Declaration
Swift
public func exiting(classname: String = #file, method: String = #function, parameters: [Any?])
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, code: (() -> ()))
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, parameter: Any?, code: (() -> ()))
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, parameters: [Any?], code: (() -> ()))
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, code: (() -> T)) -> T
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, parameter: Any?, code: (() -> T)) -> T
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, parameters: [Any?], code: (() -> T)) -> T
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, code: (() throws -> ())) throws
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, parameter: Any?, code: (() throws -> ())) throws
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod(classname: String = #file, method: String = #function, parameters: [Any?], code: (() throws -> ())) throws
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, code: (() throws -> T)) throws -> T
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, parameter: Any?, code: (() throws -> T)) throws -> T
-
Log function call. Convenience method wrapping function call contained in a code block with enter/exit logging while potentially throwing errors.
Declaration
Swift
public func logMethod<T>(classname: String = #file, method: String = #function, parameters: [Any?], code: (() throws -> T)) throws -> T
-
Logger name.
Declaration
Swift
public let name: String
-
Log level to enable or nil to use global.
Declaration
Swift
public var logLevel: Logger.Level?
-
Handlers.
Declaration
Swift
public var handlers: [LogHandler]