This commit is contained in:
Aria Moradi
2021-11-01 18:02:06 +03:30
parent 4ef6dec89a
commit 100a4c9d35
4 changed files with 3 additions and 3 deletions

View File

@@ -1,21 +0,0 @@
package masstest
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import ch.qos.logback.classic.Level
import mu.KotlinLogging
import org.slf4j.Logger
fun setLoggingEnabled(enabled: Boolean = true) {
val logger = (KotlinLogging.logger(Logger.ROOT_LOGGER_NAME).underlyingLogger as ch.qos.logback.classic.Logger)
logger.level = if (enabled) {
Level.DEBUG
} else Level.ERROR
}
const val BASE_PATH = "build/tmp/TestDesk"