simple-robot / simpler-robot

Simple Robot,一个bot风格的Kotlin多平台事件调度框架,异步高效、Java友好!/ A Bot-style Kotlin Multiplatform event scheduling framework, asynchronous and high-performance, java-friendly! 🐱😼😻😸
https://simbot.forte.love
GNU Lesser General Public License v3.0
513 stars 44 forks source link

事件信息日志怎么查看 #538

Closed lanlanwa closed 1 year ago

lanlanwa commented 1 year ago

版本号

simbot-starter-3.0.0-M2 simbot-mirai-core-3.0.0.0-beta.4

疑问描述

查看类似日志 2022-12-08T15:20:14.802+08:00 INFO 22288 --- [atcher-worker-1] s.a.a.SpringBootApplicationConfiguration : Bot [MiraiBot(id=xxx, isActive=true, eventProcessor=love.forte.simbot.core.event.SimpleEventListenerManagerImpl@3c346c45, manager=MiraiBotManager(bots=[xxx], isActive=true, eventProcessorlove.forte.simbot.core.event.SimpleEventListenerManagerImpl@3c346c45)@260115480)] started: true

ForteScarlet commented 1 year ago

2022-12-08T15:20:14.802+08:00 INFO 22288 --- [atcher-worker-1] s.a.a.SpringBootApplicationConfiguration : Bot [MiraiBot(id=xxx, isActive=true, eventProcessor=love.forte.simbot.core.event.SimpleEventListenerManagerImpl@3c346c45, manager=MiraiBotManager(bots=[xxx], isActive=true, eventProcessorlove.forte.simbot.core.event.SimpleEventListenerManagerImpl@3c346c45)@260115480)] started: true

这不就是你要看的日志吗,这不是能看到吗

lanlanwa commented 1 year ago

只有这一条,启动的时候打印的,其余的日志类似于接收到的好友信息,群聊消息都没有

ForteScarlet commented 1 year ago

底层的事件输出由mirai本身提供,或许可以尝试调整相关配置来查看效果,例如配置 config.isShowingVerboseEventLog 等(参考此处)。 以及这类日志大多为 DEBUGTRACE 级别,尝试调整相关日志的输出等级。

如果仅为了输出事件内容,也可以尝试注册一个最高优先级的监听函数并监听所有事件,然后自行输出日志。

lanlanwa commented 1 year ago

谢谢佬