DebugOak

actual open class DebugOak : Lumber.Oak(source)

Android DebugOak backed by Log.

Entries are mapped to the corresponding Android log priority and written to Logcat.

See also

actual open class DebugOak : Lumber.Oak(source)

DebugOak (Apple)

The Apple-specific implementation of DebugOak (iOS, macOS, etc.) that logs messages to the standard output using println with ANSI color coding.

Each log level is assigned a distinct color for better visibility in the Xcode console or terminal:

  • Error: Red

  • Warn: Yellow

  • Info: Blue

  • Debug: Green

  • Verbose: Gray

  • Assert: Cyan

This implementation maps each Lumber.Level to a specific style via ColoredLog.

expect open class DebugOak : Lumber.Oak(source)

Default development Lumber.Oak for each supported platform.

DebugOak routes logs to the platform-native debug sink:

  • Android uses android.util.Log

  • JVM and Apple targets write colored console output

  • JS and WasmJS use console

Lumber.plant(DebugOak())

See also

actual open class DebugOak : Lumber.Oak(source)

DebugOak (JS)

The JavaScript-specific implementation of DebugOak, which delegates all log messages to the native console object.

It maps each Lumber.Level to the most appropriate console method:

  • Verbose: console.log

  • Debug: console.log

  • Info: console.info

  • Warn: console.warn

  • Error: console.error

  • Assert: console.error

The output includes the level name and the tag to provide context within the browser or Node.js console.

actual open class DebugOak : Lumber.Oak(source)

DebugOak (JVM)

The JVM-specific implementation of DebugOak that logs messages to the standard output (stdout) with ANSI color coding.

Each log level is assigned a distinct color to improve readability in terminal environments:

  • Error: Red

  • Warn: Yellow

  • Info: Blue

  • Debug: Green

  • Verbose: Gray

  • Assert: Cyan

This implementation is ideal for server-side or desktop applications where console output is the primary means of debugging.

actual open class DebugOak : Lumber.Oak(source)

DebugOak (WasmJS)

The WasmJS-specific implementation of DebugOak, which delegates all log messages to the native JavaScript console object via helper functions.

It maps each Lumber.Level to the most appropriate console method:

  • Verbose: console.log

  • Debug: console.log

  • Info: console.info

  • Warn: console.warn

  • Error: console.error

  • Assert: console.error

The output includes the level name and the tag to provide context within the browser or Node.js console.

Constructors

Link copied to clipboard
constructor()
constructor()
expect constructor()
actual constructor()
constructor()
actual constructor()

Functions

debug
Link copied to clipboard
open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

open fun debug(error: Throwable)

Logs a Debug throwable using its stack trace as the message body.

open fun debug(message: String, vararg args: Any?)

Logs a Debug message.

open fun debug(error: Throwable, message: String, vararg args: Any?)

Logs a Debug error with a message.

error
Link copied to clipboard
open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

open fun error(error: Throwable)

Logs an Error throwable using its stack trace as the message body.

open fun error(message: String, vararg args: Any?)

Logs an Error message.

open fun error(error: Throwable, message: String, vararg args: Any?)

Logs an Error error with a message.

info
Link copied to clipboard
open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

open fun info(error: Throwable)

Logs an Info throwable using its stack trace as the message body.

open fun info(message: String, vararg args: Any?)

Logs an Info message.

open fun info(error: Throwable, message: String, vararg args: Any?)

Logs an Info error with a message.

Link copied to clipboard
actual open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

Delegates loggability checks to Log.isLoggable using the mapped Android priority.

actual open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

For Apple platforms, all log levels are considered loggable by default.

expect open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

Returns whether a log entry should be emitted on the current platform.

actual open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

For JS, all log levels are considered loggable by default.

actual open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

For the JVM implementation, all log levels are considered loggable by default.

actual open override fun isLoggable(tag: String?, level: Lumber.Level): Boolean

For WasmJS, all log levels are considered loggable by default.

log
Link copied to clipboard
open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

open fun log(level: Lumber.Level, error: Throwable)

Logs an error with a specific Level.

open fun log(level: Lumber.Level, message: String, vararg args: Any?)

Logs a message with a specific Level and optional arguments.

open fun log(level: Lumber.Level, error: Throwable?, message: String?, vararg args: Any?)

Lowest-level entry point before formatting, filtering, and chunking are applied.

maxLogLength
Link copied to clipboard
open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

open fun maxLogLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the next log message.

maxTagLength
Link copied to clipboard
open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

open fun maxTagLength(length: Int): Lumber.Oak

Sets a one-time maximum length for the tag on the next log message.

quiet
Link copied to clipboard
open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

open fun quiet(quiet: Boolean): Lumber.Oak

Suppresses the next log message for this Oak.

tag
Link copied to clipboard
open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

open fun tag(tag: String): Lumber.Oak

Sets a one-time tag for the next log message.

verbose
Link copied to clipboard
open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

open fun verbose(error: Throwable)

Logs a Verbose throwable using its stack trace as the message body.

open fun verbose(message: String, vararg args: Any?)

Logs a Verbose message.

open fun verbose(error: Throwable, message: String, vararg args: Any?)

Logs a Verbose error with a message.

warn
Link copied to clipboard
open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

open fun warn(error: Throwable)

Logs a Warn throwable using its stack trace as the message body.

open fun warn(message: String, vararg args: Any?)

Logs a Warn message.

open fun warn(error: Throwable, message: String, vararg args: Any?)

Logs a Warn error with a message.

wtf
Link copied to clipboard
open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.

open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.

open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.

open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.

open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.

open fun wtf(error: Throwable)

Logs an Assert throwable using its stack trace as the message body.

open fun wtf(message: String, vararg args: Any?)

Logs an Assert message.

open fun wtf(error: Throwable, message: String, vararg args: Any?)

Logs an Assert error with a message.