FRPLog

public struct FRPLog

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

Note

By default, FRPLog 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, FRPLog 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)