iTXTech / mirai-console-loader

模块化、轻量级且支持完全自定义的 mirai 加载器。
GNU Affero General Public License v3.0
733 stars 62 forks source link

安装过程W/stderr SLF4J报错,但是能够正常安装 #126

Closed Circleqwq closed 2 years ago

Circleqwq commented 2 years ago

安装过程中出现SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 虽不影响使用但是看着它飘红还是有点难受qwq

以下是log文件 2022-07-16 20:26:32 I/main: Starting mirai-console... 2022-07-16 20:26:32 I/main: Backend: version 2.12.0, built on 2022-07-03 10:57:58. 2022-07-16 20:26:32 I/main: Frontend Terminal: version 2.12.0, provided by Mamoe Technologies 2022-07-16 20:26:32 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-07-16 20:26:33 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".  2022-07-16 20:26:33 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation  2022-07-16 20:26:33 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.  2022-07-16 20:26:33 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-07-16 20:26:33 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-07-16 20:26:33 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-07-16 20:26:33 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用 2022-07-16 20:26:33 I/main: 1 plugin(s) enabled. 2022-07-16 20:26:33 I/main: mirai-console started successfully.

以下是控制台输出 20:42:10 [INFO] Verifying "net.mamoe:mirai-console" v2.12.0 20:42:10 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.12.0 20:42:10 [INFO] Verifying "net.mamoe:mirai-core-all" v2.12.0 20:42:10 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2 2022-07-16 20:42:12 I/main: Starting mirai-console... 2022-07-16 20:42:12 I/main: Backend: version 2.12.0, built on 2022-07-03 10:57:58. 2022-07-16 20:42:12 I/main: Frontend Terminal: version 2.12.0, provided by Mamoe Technologies 2022-07-16 20:42:12 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-07-16 20:42:12 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-07-16 20:42:12 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-07-16 20:42:12 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-07-16 20:42:13 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-07-16 20:42:13 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-07-16 20:42:13 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-07-16 20:42:13 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用 2022-07-16 20:42:13 I/main: 1 plugin(s) enabled. 2022-07-16 20:42:13 I/main: mirai-console started successfully.

添加soyuz-1.0.0-all.jar插件后 2022-07-16 20:48:45 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...

Circleqwq commented 2 years ago

在论坛翻到了这篇帖子,怪我没来论坛搜 https://mirai.mamoe.net/topic/573/%E6%B1%82%E5%8A%A9%E5%B8%96-%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3mcl%E7%99%BB%E5%BD%95%E5%90%8Eclasspath%E4%B8%AD%E4%B8%A2%E5%A4%B1log4j-core%E7%9A%84%E9%97%AE%E9%A2%98/3