log

abstract fun log(severity: UmamiLogger.Severity, message: String, throwable: Throwable? = null)

The core logging function that all other logging methods delegate to.

Implementations of UmamiLogger must provide the logic for handling log messages in this function. This is where the actual output of the log (e.g., printing to the console) should occur.

Parameters

severity

The Severity level of the log message.

message

The message string to be logged.

throwable

An optional Throwable to accompany the log message.