ConsoleLogger

@objcMembers
@objc(BMPConsoleLogger)
public class ConsoleLogger : NSObject, Logger

Prints a log entry to the console when logging is enabled in the SDK, and the log entry level equals or is above the minimum log level that is assigned to level below. See LogEntry and LoggingConfig for more details.

  • The minimum log level that is used to filter log output.

    Default minimum level is .warning.

    Declaration

    Swift

    public var level: LogLevel
  • Declaration

    Swift

    override public convenience init()
  • Prints a log entry to the console with the date and time, sender of the log, log level, and log message. If applicable, the printed log entry may contain a log code and additional data.

    Declaration

    Swift

    public func log(_ logEntry: LogEntry)

    Parameters

    logEntry

    the LogEntry contains the details of the log