Skip to content

CLASS

IPSLog

public class IPSLog: NSObject

Android style logger with support for log levels. Supports printing to device console via NSLog.

Example of use: Log.d("my debug message")

Properties

level

@objc public static var level: IPSLogLevel

The minimal level of log messages to be printed.

Methods

v(_:function:file:line:)

public static func v(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.verbose log message.

d(_:function:file:line:)

public static func d(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.debug log message.

i(_:function:file:line:)

public static func i(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.info log message.

w(_:function:file:line:)

public static func w(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.warning log message.

e(_:function:file:line:)

public static func e(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.error log message.

wtf(_:function:file:line:)

public static func wtf(_ msg: String, function: String = #function, file: String = #file, line: Int = #line)

Print a IPSLogLevel.wtf log message.