log

fun Log.Logger.log(level: Log.Level, t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int(source)

Send a log message to all Log instances installed at Log.Root. If no Log instances are installed, or none will accept it, then nothing is logged and Formatter.format will not be called to apply arg1 and arg2 to format.

Return

The number of Log instances that logged the data.

Parameters

level

The Log.Level to log at.

t

The error to log.

format

The unformatted message to log.

arg1

The first argument to apply to format via Formatter.format.

arg2

The second argument to apply to format via Formatter.format.

Throws


fun Log.Logger.log(level: Log.Level, arguments: Array<out Any?>, t: Throwable?, format: String?): Int(source)

Send a log message to all Log instances installed at Log.Root. If no Log instances are installed, or none will accept it, then nothing is logged and Formatter.format will not be called to apply arguments to format.

Return

The number of Log instances that logged the data.

Parameters

level

The Log.Level to log at.

t

The error to log.

format

The unformatted message to log.

arguments

The arguments to apply to format via Formatter.format.

Throws