From b412e7b3b79f9f3ae7c0497fd94b1bb9156523a8 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 25 Nov 2023 12:56:00 +0600 Subject: [PATCH] improvement of DefaultKTgBotAPIKSLog --- .../kotlin/dev/inmo/tgbotapi/utils/DefaultKSLog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/DefaultKSLog.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/DefaultKSLog.kt index 650639ec81..a7736691f3 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/DefaultKSLog.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/DefaultKSLog.kt @@ -1,8 +1,11 @@ package dev.inmo.tgbotapi.utils import dev.inmo.kslog.common.KSLog +import dev.inmo.kslog.common.TagLogger /** * 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) */ -var DefaultKTgBotAPIKSLog = KSLog("KTgBot") +var DefaultKTgBotAPIKSLog: KSLog = TagLogger("KTgBot")