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
errorError type for logging. Doesn’t log if error == nil
levelLog level of the message, subject to
minimumErrorLogLevelcategoryWhen logging to the system console you can group similar messages by category to categorize and filter related log messages
fileNot needed, gets these automatically
functionNot needed, gets these automatically
lineNot 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
messageString to log, subject to
minimumLogLevel.levelLog level of the message, subject to
minimumLogLevelcategoryWhen logging to the system console you can group similar messages by category to categorize and filter related log messages
fileNot needed, gets these automatically
functionNot needed, gets these automatically
lineNot needed, gets these automatically
Functions Reference