Releases: MFlisar/Lumberjack
Releases · MFlisar/Lumberjack
5.3.0
Added log functions with manual levels:
fun log(priority: Int, t: Throwable, message: () -> String)
fun log(priority: Int, t: Throwable)
fun log(priority: Int, message: () -> String)
Very useful if you want to forward logs from another library inside a custom logger... e.g. like following:
// definition looks like following:
// var logger: ((level: Int, info: String, e: Exception?) -> Unit)? = null
MaterialDialog.logger = { level, info, exception ->
if (exception != null) {
L.tag("DIALOG-LOGS").log(level, exception) { info }
} else {
L.tag("DIALOG-LOGS").log(level) { info }
}
}
Full Changelog: 5.2.9...5.3.0
5.2.9
Viewer shows info logs in a readable color if a dark theme is used
Full Changelog: 5.2.8...5.2.9
5.2.8
- Viewer supports to provide a custom theme now (provide one without a toolbar!)
- console tree does not replace all brackets anymore, enable this manually if needed
- viewer does use the default primary toolbar style now
Full Changelog: 5.2.7...5.2.8
5.2.7
5.2.6
Main changes
- notification module supports android 32+ (solves #14)
- main log functions are NOT inlined anymore - otherwise its not possible to provide correct line numbers in kotlin => lambdas are stil evaluated lazily of course
- line numbers are working again correctly
Other changes
- removed call stack correction
- remove java module, simple added @JvmStatic to all functions in L class
Full Changelog: 5.2.5...5.2.6
5.2.5
ConsoleTree - by default replaces brackets of logs if appendClickableLink is true to make sure that appended links are clickable
This option is enabled by default but can be disabled again if desired
5.2.4
5.2.3
Extended the IFormatter interface further to allow even more customisation
5.2.2
- added IFilter + IFormatter interface
- added a public default formatter implementation (open for extension)
Check out following classes: