-
Notifications
You must be signed in to change notification settings - Fork 0
Logs
static let iOSToolsVersion: Stringstatic var alwaysPrintTime: Boolstatic var printAsDebug: Bool
func print(message: String?, tag: String? = nil, time: Bool? = nil) -> Stringfunc info(message: String?, time: Bool? = nil) -> Stringfunc debug(message: String?, time: Bool? = nil) -> Stringfunc warning(message: String?, time: Bool? = nil) -> Stringfunc error(message: String?, time: Bool? = nil) -> Stringfunc outputMessage(message: String?, tag: String? = nil, time: Bool = false) -> String
-
static let iOSToolsVersion: String: Provide iOSTools version with following format: "iOSTools - Version *". -
static var alwaysPrintTime: Bool: If set to true, any call to Logs method will print time by default. Default value is false. -
static var printAsDebug: Bool: If set to true, any call to Logs method will print message with quotes by default. Default value is false. -
static func print(message: String?, tag: String? = nil, time: Bool? = nil) -> String: Print message with an optional tag and time before. Output is also returned as discardableResult and its format is: "[TIME][TAG]: MESSAGE". -
static func info(message: String?, time: Bool? = nil) -> String: Print message with an optional time before. Output is also returned as discardableResult and its format is: "[TIME][INFO]: MESSAGE". -
static func debug(message: String?, time: Bool? = nil) -> String: Print message with an optional time before. Output is also returned as discardableResult and its format is: "[TIME][DEBUG]: MESSAGE". -
static func warning(message: String?, time: Bool? = nil) -> String: Print message with an optional time before. Output is also returned as discardableResult and its format is: "[TIME][WARNING]: MESSAGE". -
static func error(message: String?, time: Bool? = nil) -> String: Print message with an optional time before. Output is also returned as discardableResult and its format is: "[TIME][ERROR]: MESSAGE". -
static func outputMessage(message: String?, tag: String? = nil, time: Bool = false) -> String: Create a message with an optional tag and time before. Output format is: "[TIME][TAG]: MESSAGE".