Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议修改 日志等级中 warning 警告 的日志颜色 #2336

Closed
cssxsh opened this issue Nov 9, 2022 · 0 comments
Closed

建议修改 日志等级中 warning 警告 的日志颜色 #2336

cssxsh opened this issue Nov 9, 2022 · 0 comments
Labels
s:core 子系统: mirai-core t:enhancement 类型: 现有功能上的优化 t:task 类型: 要做的任务 x:behavior-change 属性: 行为变更 (API 不变, 行为改变)
Milestone

Comments

@cssxsh
Copy link
Contributor

cssxsh commented Nov 9, 2022

protected open val SimpleLogger.LogPriority.color: Color
get() = when (this) {
SimpleLogger.LogPriority.VERBOSE -> Color.RESET
SimpleLogger.LogPriority.INFO -> Color.LIGHT_GREEN
SimpleLogger.LogPriority.WARNING -> Color.LIGHT_RED
SimpleLogger.LogPriority.ERROR -> Color.RED
SimpleLogger.LogPriority.DEBUG -> Color.LIGHT_CYAN
}

目前 WARNING ERROR 都是红色,
WARNING 建议改成 黄色 以作区别

@cssxsh cssxsh added the t:feature 类型: 新特性 label Nov 9, 2022
@Karlatemp Karlatemp added t:enhancement 类型: 现有功能上的优化 t:task 类型: 要做的任务 s:core 子系统: mirai-core x:behavior-change 属性: 行为变更 (API 不变, 行为改变) and removed t:feature 类型: 新特性 labels Nov 9, 2022
@Karlatemp Karlatemp added this to the 2.14.0-RC milestone Nov 18, 2022
Him188 added a commit that referenced this issue Dec 27, 2022
Commit 28030df fixed this problem for PlatformLogger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:core 子系统: mirai-core t:enhancement 类型: 现有功能上的优化 t:task 类型: 要做的任务 x:behavior-change 属性: 行为变更 (API 不变, 行为改变)
Projects
None yet
Development

No branches or pull requests

2 participants