APLogger
@objc
open class APLogger : NSObject
Static class to use APLogger.
-
This variable helps to control log level.
Declaration
Swift
@objc public static var isDebug: Bool
-
Variable to set descriptor string for the log level info.
Declaration
Swift
@objc public static var infoDescriptorString: String
-
Variable to set descriptor string for the log level warning.
Declaration
Swift
@objc public static var warningDescriptorString: String
-
Variable to set descriptor string for the log level error.
Declaration
Swift
@objc public static var errorDescriptorString: String
-
Variable to set descriptor string for the log level fatal.
Declaration
Swift
@objc public static var fatalDescriptorString: String
-
Use this variable to set minimum log level that you want to see when isDebug variable is false.
Declaration
Swift
@objc public static var releaseMinimumLogLevel: LogLevel
-
Main function to print log
- title: Title parameter for the log.
- description: Description parameter for the log.
- logLevel: Log level for the log.
Declaration
Swift
@objc public static func log(_ title: String, _ description: String?, _ logLevel: LogLevel)
-
Logging function for info logs.
- title: Title parameter for the log.
- description: Description parameter for the log.
Declaration
Swift
@objc public static func logInfo(_ title: String, _ description: String?)
-
Logging function for warning logs.
- title: Title parameter for the log.
- description: Description parameter for the log.
Declaration
Swift
@objc public static func logWarning(_ title: String, _ description: String?)
-
Logging function for error logs.
- title: Title parameter for the log.
- description: Description parameter for the log.
Declaration
Swift
@objc public static func logError(_ title: String, _ description: String?)
-
Logging function for fatal logs.
- title: Title parameter for the log.
- description: Description parameter for the log.
Declaration
Swift
@objc public static func logFatal(_ title: String, _ description: String?)
-
Funtion for customizing the log format
- format: Format string to be used for logging. You may use any format which you desire.
Declaration
Swift
@objc public static func changeLogFormat(_ format: String!)