LogEntry

@objc(BMPLogEntry)
@objcMembers
public final class LogEntry : NSObject

Represents one single log entry

  • The log message

    Declaration

    Swift

    public let message: String
  • The log level

    Declaration

    Swift

    public let level: LogLevel
  • The optional code associated with a warning or an error log

    Declaration

    Swift

    public var code: Int?
  • The entity or top-level API that sends the log e.g. “Player”, “Source”, “PlayerView”, “Offline”

    Declaration

    Swift

    public let sender: String
  • The additional data that can be provided for a deficiency. This data can only be passed for warning and error level logs.

    Declaration

    Swift

    public let data: DeficiencyData?
  • The date when the log entry was created

    Declaration

    Swift

    public let currentDate: Date
  • Declaration

    Swift

    public init(
        message: String,
        level: LogLevel,
        code: Int?,
        sender: String,
        data: DeficiencyData?,
        currentDate: Date = Date()
    )