LoggerAndroid

Android Logging mechanism. Uses platform logging Log to expose underlying logs to the receiver (user).

Message is split to ~4kB parts supported by the platform Log. The code logging the messages is not synchronized, therefore the scenario where message is intercepted by other is likely to happen.

Additionally throwable, if provided, is retrieved via Log.getStackTraceString and printed after the message.

Logging is always performed unless platform refuses the logging operation via Log.isLoggable.

See Documentation

Parameters

tag

The tag which will be supplied when logging via Log for each logged message.

Constructors

Link copied to clipboard
constructor(tag: String)

Functions

Link copied to clipboard
open override fun log(level: Level, message: String, throwable: Throwable?)