LogWriter

interface LogWriter

Interface for custom log output handling.

Implement this interface to allow custom processing of SDK log messages, such as writing to a file, sending to a remote server, or integrating with a custom logging framework. SDK logs will still be sent to Android's logcat.

Set an instance via MbLog.logWriter to receive log messages

Functions

Link copied to clipboard
abstract fun writeLog(level: MbLog.LogLevel, tag: String, message: String, throwable: Throwable?)

Writes a log message with the specified level, tag, and optional exception.