FRLog

@objc
public class FRLog : NSObject

FRLog is a class responsible for Logging functionalities of FRAuth SDK. FRLog can also be used in the application layer which then be displayed through FRAuth SDK, and through OSLog with FRAuth SDK’s system label and LogLevel.

Note

By default, FRLog uses OSLog to display the log entry in the debug console, and in the log system of iOS; however, when OS_ACTIVITY_MODE is disabled in the environment variable, FRLog then uses default system print() method to display the log entry in the console only.

Method

  • Sets LogLevel

    Declaration

    Swift

    @objc
    public static func setLogLevel(_ logLevel: LogLevel)

    Parameters

    logLevel

    Designated LogLevel to be displayed

  • Sets CustomLogger

    Declaration

    Swift

    @objc
    public static func setCustomLogger(_ logger: FRLogger)

    Parameters

    logger

    Set logger will reset the logger to Custom Logger, Default Logger will be inactive

  • Declaration

    Swift

    public static func v(_ message: String, subModule: String? = nil, _ includeCallStack: Bool? = true, file: String = #file, line: Int = #line, function: String = #function)
  • Declaration

    Swift

    public static func i(_ message: String, subModule: String? = nil, _ includeCallStack: Bool? = true, file: String = #file, line: Int = #line, function: String = #function)
  • Declaration

    Swift

    public static func w(_ message: String, subModule: String? = nil, _ includeCallStack: Bool? = true, file: String = #file, line: Int = #line, function: String = #function)
  • Declaration

    Swift

    public static func e(_ message: String, subModule: String? = nil, file: String = #file, line: Int = #line, function: String = #function)