LogWrapper

class LogWrapper(tag: String)(source)

A fixed-tag wrapper around Log.

Obtained via Log.withTag or Log.withClassTag. All calls delegate to the corresponding Log method with the wrapper's tag.

Constructors

Link copied to clipboard
constructor(tag: String)

Functions

Link copied to clipboard
fun d(message: String)

Logs a DEBUG message with this wrapper's tag.

Link copied to clipboard
fun e(message: String, throwable: Throwable? = null)

Logs an ERROR message with this wrapper's tag.

Link copied to clipboard
fun fatal(message: String, throwable: Throwable? = null)

Logs a FATAL message with this wrapper's tag and throws after flushing all sinks.

Link copied to clipboard
fun getTag(): String

Returns the tag used by this wrapper.

Link copied to clipboard
fun i(message: String)

Logs an INFO message with this wrapper's tag.

Link copied to clipboard
fun v(message: String)

Logs a VERBOSE message with this wrapper's tag.

Link copied to clipboard
fun w(message: String, throwable: Throwable? = null)

Logs a WARN message with this wrapper's tag.