mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Forgot a few log functions
This commit is contained in:
parent
1fd362c81c
commit
e639c72b2f
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ fun Any.log(level: Int, text: CharSequence, newLine : Boolean = true) {
|
|||
}
|
||||
|
||||
fun Any.kobaltLog(level: Int, text: CharSequence, newLine : Boolean = true) = log(level, text, newLine)
|
||||
fun Any.kobaltWarn(text: CharSequence) = warn(text)
|
||||
fun Any.kobaltError(text: CharSequence) = error(text)
|
||||
|
||||
fun Any.logWrap(level: Int, text1: CharSequence, text2: CharSequence, function: () -> Unit) {
|
||||
if (level <= KobaltLogger.LOG_LEVEL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue