Functions
The following functions are available globally.
-
Starts spinning the network indicator, dispatches to the main thread.
Declaration
Swift
public func startNetworkIndicator()
-
Stops spinning the network indicator, dispatches to the main thread.
Declaration
Swift
public func stopNetworkIndicator()
-
Log an error to the console. Assumes level: minimumErrorLogLevel unless other level is specified.
Declaration
Swift
public func Log(_ error: Error?, as level: LogLevel = minimumErrorLogLevel, category: String? = nil, file: String = #file, function: String = #function, line: Int = #line)
Parameters
error
Error type for logging. Doesn’t log if error == nil
level
Log level of the message, subject to
minimumErrorLogLevel
category
When logging to the system console you can group similar messages by category to categorize and filter related log messages
file
Not needed, gets these automatically
function
Not needed, gets these automatically
line
Not needed, gets these automatically
-
Logs a message to the console. Assumes level: minimumLogLevel unless other level is specified.
Declaration
Swift
public func Log(_ message: String?, as level: LogLevel = minimumLogLevel, category: String? = nil, file: String = #file, function: String = #function, line: Int = #line)
Parameters
message
String to log, subject to
minimumLogLevel
.level
Log level of the message, subject to
minimumLogLevel
category
When logging to the system console you can group similar messages by category to categorize and filter related log messages
file
Not needed, gets these automatically
function
Not needed, gets these automatically
line
Not needed, gets these automatically