1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-07 00:59:57 +00:00

add notice about privacy handling

This commit is contained in:
2024-07-09 17:35:10 +06:00
parent 236f484e10
commit 610ada505f
2 changed files with 15 additions and 2 deletions

View File

@@ -1,11 +1,19 @@
package dev.inmo.tgbotapi.utils
import dev.inmo.kslog.common.KSLog
import dev.inmo.kslog.common.LogLevel
import dev.inmo.kslog.common.TagLogger
/**
* Default tag for [DefaultKTgBotAPIKSLog]. You may change it and tag will be changed since the near logging
*/
var DefaultKTgBotAPIKSLogSystemTag: String = "KTgBot"
/**
* Default realization of [KSLog] which will be used everywhere where there is no some custom variant of [KSLog]
*
* By default, uses [TagLogger] with tag `KTgBot` (which in fact falling back to [KSLog.default] with `KTgBot` default tag)
* By default, uses [KSLog] factory with lambda and tag [DefaultKTgBotAPIKSLogSystemTag] (which in fact falling back to
* [KSLog.default] with `KTgBot` default tag)
*/
var DefaultKTgBotAPIKSLog: KSLog = TagLogger("KTgBot")
var DefaultKTgBotAPIKSLog: KSLog = KSLog { level: LogLevel, tag: String?, message: Any, throwable: Throwable? ->
TagLogger(DefaultKTgBotAPIKSLogSystemTag).performLog(level, tag, message, throwable)
}