invoke

open operator override fun invoke(priority: Int, message: String, exception: Exception?)

Logs a message and optional exception with a given priority.

Parameters

priority

the log priority (Log.VERBOSE, Log.DEBUG, etc.)

message

the message to log

exception

optional exception to log


open operator override fun invoke(priority: Int, message: () -> String, exception: Exception?)

Logs a lazily evaluated message and optional exception with a given priority.

Parameters

priority

the log priority (Log.VERBOSE, Log.DEBUG, etc.)

message

lambda returning the message to log

exception

optional exception to log