mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-18 09:07:04 +08:00
Add experimental nameAligned and simpleName to SimpleLogger.LogPriority
This commit is contained in:
parent
3f4dd1ec12
commit
b4a3d13011
@ -240,12 +240,15 @@ class SimpleLogger(
|
||||
private val logger: (priority: LogPriority, message: String?, e: Throwable?) -> Unit
|
||||
) : MiraiLoggerPlatformBase() {
|
||||
|
||||
enum class LogPriority {
|
||||
VERBOSE,
|
||||
DEBUG,
|
||||
INFO,
|
||||
WARNING,
|
||||
ERROR
|
||||
enum class LogPriority(
|
||||
@MiraiExperimentalAPI val nameAligned: String,
|
||||
@MiraiExperimentalAPI val simpleName: String
|
||||
) {
|
||||
VERBOSE("VERBOSE", "VBSE"),
|
||||
DEBUG(" DEBUG ", "DEBG"),
|
||||
INFO(" INFO ", "INFO"),
|
||||
WARNING("WARNING", "WARN"),
|
||||
ERROR(" ERROR ", "EROR")
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
Loading…
Reference in New Issue
Block a user