mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-06-01 06:48:50 +02:00
18 lines
535 B
Kotlin
18 lines
535 B
Kotlin
package xyz.nulldev.ts.config
|
|
|
|
/*
|
|
* 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 setLogLevel(level: Level) {
|
|
(KotlinLogging.logger(Logger.ROOT_LOGGER_NAME).underlyingLogger as ch.qos.logback.classic.Logger).level = level
|
|
}
|