Logger

class Logger

Logger for the MapLibre Maps SDK for Android

Default implementation relies on Log. Alternative implementations can be set with setLoggerDefinition.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
annotation class LogLevel
Log level indicates which logs are allowed to be emitted by the MapLibre Maps SDK for Android.

Properties

Link copied to clipboard
val DEBUG: Int = 3
Priority constant for the println method; use Logger.d.
Link copied to clipboard
val ERROR: Int = 6
Priority constant for the println method; use Logger.e.
Link copied to clipboard
val INFO: Int = 4
Priority constant for the println method; use Logger.i.
Link copied to clipboard
val NONE: Int = 99
Priority constant for the println method.
Link copied to clipboard
val VERBOSE: Int = 2
Priority constant for the println method; use Logger.
Link copied to clipboard
val WARN: Int = 5
Priority constant for the println method; use Logger.w.

Functions

Link copied to clipboard
open fun d(tag: String, msg: String)
Send a debug log message.
open fun d(tag: String, msg: String, tr: Throwable)
Send a debug log message and log the exception.
Link copied to clipboard
open fun e(tag: String, msg: String)
Send an error log message.
open fun e(tag: String, msg: String, tr: Throwable)
Send an error log message and log the exception.
Link copied to clipboard
open fun i(tag: String, msg: String)
Send an info log message.
open fun i(tag: String, msg: String, tr: Throwable)
Send an info log message and log the exception.
Link copied to clipboard
open fun log(severity: Int, tag: String, message: String)
Send a log message based on severity.
Link copied to clipboard
open fun setLoggerDefinition(loggerDefinition: LoggerDefinition)
Replace the current used logger definition.
Link copied to clipboard
open fun setVerbosity(logLevel: Int)
Set the verbosity of the Logger.
Link copied to clipboard
open fun v(tag: String, msg: String)
Send a verbose log message.
open fun v(tag: String, msg: String, tr: Throwable)
Send a verbose log message and log the exception.
Link copied to clipboard
open fun w(tag: String, msg: String)
Send a warning log message.
open fun w(tag: String, msg: String, tr: Throwable)
Send a warning log message and log the exception.