FreSwiftLogger

public class FreSwiftLogger

FreSwiftLogger: Logger utility for logging any FRE errors which occur

  • context: sets/gets the FreContextSwift

    Declaration

    Swift

    open var context: FreContextSwift?
  • shared: returns the shared instance

    Declaration

    Swift

    public static let shared: FreSwiftLogger
  • error: traces the message to the console

    Declaration

    Swift

    public func error(message: String, stackTrace: String? = nil,
                      type: FreError.Code, line: Int = #line, column: Int = #column, file: String = #file)

    Parameters

    message

    message to log

    stackTrace

    stack trace to log

    type

    type of error

    line

    line where error occurred

    column

    column where error occurred

    file

    file name where error occurred

  • info: traces the message to the console

    Declaration

    Swift

    public func info(message: String, line: Int = #line, column: Int = #column, file: String = #file)

    Parameters

    message

    message to log

    line

    line where error occurred

    column

    column where error occurred

    file

    file name where error occurred