LogLevel
@objc(FRLogLevel)
public class LogLevel : NSObject, OptionSet
LogLevel is a representation of Log’s type of log entry.\nAvailable LogLevels are: * none: no log entry is displayed on the debug console or log file * verbose: verbose level of log entry is displayed on the debug console or log file. * info: information level of log entry is displayed on the debug console or log file. * network: network level of log entry is displayed on the debug console or log file. All network traffics going in and out are through FRAuth SDK will be displayed with detailed information of request and response. * warning: warning level of log entry is displayed on the debug console or log file. Any minor issue, or error that would not impact the SDK’s functionality will be displayed. * error: error level of log entry is displayed on the debug console or log file. Any severe issue, or major error that would impact the SDK’s functionality will be displayed. * all: All types of log entry will be displayed on the debug console or log file.
-
rawValue of LogLevel
Declaration
Swift
public var rawValue: Int
-
rawValue of LogLevel
Declaration
Swift
public typealias RawValue = Int
-
none LogLevel indicates that there is no log
Declaration
Swift
@objc public static let none: LogLevel
-
verbose LogLevel indicates that the log entry is not important or can be ignored
Declaration
Swift
@objc public static let verbose: LogLevel
-
info LogLevel indicates that the log entry maybe helpful, or meaningful for debugging, or understanding the flow
Declaration
Swift
@objc public static let info: LogLevel
-
network LogLevel indicates the log entry of any network traffics, including request, and response
Declaration
Swift
@objc public static let network: LogLevel
-
warning LogLevel indicates the log entry of any minor issue or error that may occur which can be ignored
Declaration
Swift
@objc public static let warning: LogLevel
-
error LogLEvel indicates the log entry of any severe issue, or major error that impacts SDK’s functionality or flow
Declaration
Swift
@objc public static let error: LogLevel
-
all LogLevel indicates the log entry of all LogLevels
Declaration
Swift
@objc public static let all: LogLevel
-
Init
Declaration
Swift
required public override convenience init()
-
Initializes LogLevel with rawValue
Declaration
Swift
required public init(rawValue: Int)
Parameters
rawValue
rawValue of LogLevel
-
Hash
Declaration
Swift
public override var hash: Int { get }
-
Compares the LogLevel
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
Parameters
object
Any object
Return Value
Boolean result of whether object is equal to LogLevel or not
-
Concatenates with another LogLevel
Declaration
Swift
public func formUnion(_ other: LogLevel)
Parameters
other
Additional LogLevel to be concatenated
-
Makes intersection with another LogLevel
Declaration
Swift
public func formIntersection(_ other: LogLevel)
Parameters
other
LogLevel
-
Makes symmetric difference with another LogLevel
Declaration
Swift
public func formSymmetricDifference(_ other: LogLevel)
Parameters
other
LogLevel