Add experimental nameAligned and simpleName to SimpleLogger.LogPriority

This commit is contained in:
Him188 2020-05-21 17:53:03 +08:00
parent 3f4dd1ec12
commit b4a3d13011

View File

@ -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 {