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