Package-level declarations

Types

Link copied to clipboard
abstract class Log

An abstraction for dynamic logging.

Functions

Link copied to clipboard
inline fun Log.Logger.d(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Debug 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 arg to format.

inline fun Log.Logger.d(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Debug 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.

inline fun Log.Logger.d(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Debug 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.

Link copied to clipboard
inline fun Log.Logger.e(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Error 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 arg to format.

inline fun Log.Logger.e(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Error 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.

inline fun Log.Logger.e(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Error 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.

Link copied to clipboard
inline fun Log.Logger.i(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Info 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 arg to format.

inline fun Log.Logger.i(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Info 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.

inline fun Log.Logger.i(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Info 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.

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

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.

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

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 arg to format.

inline fun Log.Logger.log(level: Log.Level, t: Throwable?, format: String?, vararg arguments: Any?): Int

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.

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

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.

Link copied to clipboard
inline fun Log.Logger.v(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Verbose 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 arg to format.

inline fun Log.Logger.v(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Verbose 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.

inline fun Log.Logger.v(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Verbose 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.

Link copied to clipboard
inline fun Log.Logger.w(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Warn 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 arg to format.

inline fun Log.Logger.w(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Warn 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.

inline fun Log.Logger.w(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Warn 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.

Link copied to clipboard
inline fun Log.Logger.wtf(t: Throwable?, format: String?, arg: Any?): Int

Send a Level.Fatal 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 arg to format.

inline fun Log.Logger.wtf(t: Throwable?, format: String?, vararg arguments: Any?): Int

Send a Level.Fatal 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.

inline fun Log.Logger.wtf(t: Throwable?, format: String?, arg1: Any?, arg2: Any?): Int

Send a Level.Fatal 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.