Functions
The following functions are available globally.
-
Print the ERROR log message accordingly to format.
Declaration
Swift
public func LogError(_ format: String, args: CVarArg...)
Parameters
format
A format string of message.
args
A list of arguments to substitute into format.
-
Logs the WARNING message accordingly to format.
Declaration
Swift
public func LogWarning(_ format: String, args: CVarArg...)
Parameters
format
A format string of message.
args
A list of arguments to substitute into format.
-
Logs the DEBUG message accordingly to format.
Declaration
Swift
public func LogDebug(_ format: String, args: CVarArg...)
Parameters
format
A format string of message.
args
A list of arguments to substitute into format.
-
Logs the message accordingly to level and format.
Declaration
Swift
public func Log(_ level: TNLogLevel, format: String, args: [CVarArg])
Parameters
level
level of log message.
format
A format string of message.
args
A list of arguments to substitute into format.