LogHelper

@objc
public class LogHelper : NSObject

The helper class for logging information to console and log file.

    • Get the current log level
    Declaration

    Swift

    @objc
    public static func getLogLevel() -> LogType
    • Clears the contents of the log. Will return true if successful.
    Declaration

    Swift

    @objc
    public static func clearLog() -> Bool
    • Changes the log’s severity (VERBOSE, DEBUG, INFO, WARNING, ERROR). Not objc compatible
    Declaration

    Swift

    @objc
    public static func changeLogLevel(_ logLevel: LogType)
  • Declaration

    Swift

    @objc
    public static func logDir() -> String
  • Log Verbose level message in log.

    Declaration

    Swift

    @objc
    public static func logVerbose(_ log: String, function: String = #function, filePath: String = #file, fileLine: Int = #line)
  • Log Info level message in log.

    Declaration

    Swift

    @objc
    public static func logInfo(_ log: String, function: String = #function, filePath: String = #file, fileLine: Int = #line)
  • Log Debug level message in log.

    Declaration

    Swift

    @objc
    public static func logDebug(_ log: String, function: String = #function, filePath: String = #file, fileLine: Int = #line)
  • Log Warning level message in log.

    Declaration

    Swift

    @objc
    public static func logWarning(_ log: String, function: String = #function, filePath: String = #file, fileLine: Int = #line)
  • Log Error level message in log.

    Declaration

    Swift

    @objc
    public static func logError(_ log: String, function: String = #function, filePath: String = #file, fileLine: Int = #line)