Commit b4a3d130 authored by Him188's avatar Him188

Add experimental nameAligned and simpleName to SimpleLogger.LogPriority

parent 3f4dd1ec
...@@ -240,12 +240,15 @@ class SimpleLogger( ...@@ -240,12 +240,15 @@ class SimpleLogger(
private val logger: (priority: LogPriority, message: String?, e: Throwable?) -> Unit private val logger: (priority: LogPriority, message: String?, e: Throwable?) -> Unit
) : MiraiLoggerPlatformBase() { ) : MiraiLoggerPlatformBase() {
enum class LogPriority { enum class LogPriority(
VERBOSE, @MiraiExperimentalAPI val nameAligned: String,
DEBUG, @MiraiExperimentalAPI val simpleName: String
INFO, ) {
WARNING, VERBOSE("VERBOSE", "VBSE"),
ERROR DEBUG(" DEBUG ", "DEBG"),
INFO(" INFO ", "INFO"),
WARNING("WARNING", "WARN"),
ERROR(" ERROR ", "EROR")
} }
companion object { companion object {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment