FRALog

public struct FRALog

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

Note

By default, FRALog 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, FRALog then uses default system print() method to display the log entry in the console only.

Method

  • Sets LogLevel

    Declaration

    Swift

    public static func setLogLevel(_ logLevel: LogLevel)

    Parameters

    logLevel

    Designated LogLevel to be displayed

  • Declaration

    Swift

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

    Swift

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

    Swift

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

    Swift

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