Setup
This library is distributed via maven central.
Add dependencies like following to use this library inside your project.
Simply add the dependencies inside your build.gradle.kts
file.
build.gradle.kts
val lumberjack = "<LATEST-VERSION>"
// core module
implementation("io.github.mflisar.lumberjack:core:$lumberjack")
// if you want to use the lumberjack logger
implementation("io.github.mflisar.lumberjack:implementation-lumberjack:$lumberjack")
implementation("io.github.mflisar.lumberjack:logger-console:$lumberjack")
implementation("io.github.mflisar.lumberjack:logger-file:$lumberjack")
// extensions that work with any implementation
implementation("io.github.mflisar.lumberjack:extension-feedback:$lumberjack")
implementation("io.github.mflisar.lumberjack:extension-notification:$lumberjack")
implementation("io.github.mflisar.lumberjack:extension-viewer:$lumberjack")
implementation("io.github.mflisar.lumberjack:extension-composeviewer:$lumberjack")
// if you want to use the timber logger
implementation("io.github.mflisar.lumberjack:implementation-timber:$lumberjack")
implementation("io.github.mflisar.lumberjack:logger-timber-console:$lumberjack")
implementation("io.github.mflisar.lumberjack:logger-timber-file:$lumberjack")
Define the dependencies inside your libs.versions.toml
file.
libs.versions.toml
[versions]
lumberjack = "<LATEST-VERSION>"
[libraries]
# core module
lumberjack-core = { module = "io.github.mflisar.lumberjack:core", version.ref = "lumberjack" }
# if you want to use the lumberjack logger
lumberjack-implementation-lumberjack = { module = "io.github.mflisar.lumberjack:implementation-lumberjack", version.ref = "lumberjack" }
lumberjack-logger-console = { module = "io.github.mflisar.lumberjack:logger-console", version.ref = "lumberjack" }
lumberjack-logger-file = { module = "io.github.mflisar.lumberjack:logger-file", version.ref = "lumberjack" }
# extensions that work with any implementation
lumberjack-extension-feedback = { module = "io.github.mflisar.lumberjack:extension-feedback", version.ref = "lumberjack" }
lumberjack-extension-notification = { module = "io.github.mflisar.lumberjack:extension-notification", version.ref = "lumberjack" }
lumberjack-extension-viewer = { module = "io.github.mflisar.lumberjack:extension-viewer", version.ref = "lumberjack" }
lumberjack-extension-composeviewer = { module = "io.github.mflisar.lumberjack:extension-composeviewer", version.ref = "lumberjack" }
# if you want to use the timber logger
lumberjack-implementation-timber = { module = "io.github.mflisar.lumberjack:implementation-timber", version.ref = "lumberjack" }
lumberjack-logger-timber-console = { module = "io.github.mflisar.lumberjack:logger-timber-console", version.ref = "lumberjack" }
lumberjack-logger-timber-file = { module = "io.github.mflisar.lumberjack:logger-timber-file", version.ref = "lumberjack" }
And then use the definitions in your projects like following:
build.gradle.kts
# core module
implementation(libs.lumberjack.core)
# if you want to use the lumberjack logger
implementation(libs.lumberjack.implementation.lumberjack)
implementation(libs.lumberjack.logger.console)
implementation(libs.lumberjack.logger.file)
# extensions that work with any implementation
implementation(libs.lumberjack.extension.feedback)
implementation(libs.lumberjack.extension.notification)
implementation(libs.lumberjack.extension.viewer)
implementation(libs.lumberjack.extension.composeviewer)
# if you want to use the timber logger
implementation(libs.lumberjack.implementation.timber)
implementation(libs.lumberjack.logger.timber.console)
implementation(libs.lumberjack.logger.timber.file)