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

[Feature] 增加对于其他操作和事件的 log #73

Closed
I-love-study opened this issue Jan 12, 2022 · 2 comments
Closed

[Feature] 增加对于其他操作和事件的 log #73

I-love-study opened this issue Jan 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@I-love-study
Copy link
Collaborator

使用场景
现阶段只有接收消息发送消息会有相关 log 的提示
而其他方法(如禁言群员,退出群聊)和事件(比如xxx被禁言了)还有却没有 任何 log 提示
假设加上相关 log,会不会使这个日志变得更加像日志呢?

你想要的解决方案
将所有非获取的方法(即不是以 get 开头的方法)和其他 mirai 事件加上 log 记录

是否已有相关实现

其他内容
具体怎么做(如将 log 分类什么的)可能还有待商榷

@I-love-study I-love-study added enhancement New feature or request triage Further information is requested labels Jan 12, 2022
@BlueGlassBlock
Copy link
Member

这个 mirai-console 已经做了, 在 Ariadne 端做需要强制启用 bypass_listener 特性.
我可能会通过 audit hook 的方式实现这个: 给所有 api 操作加上 audit hook.

@BlueGlassBlock BlueGlassBlock removed the triage Further information is requested label Jan 13, 2022
@BlueGlassBlock
Copy link
Member

似乎在 Adapter 端可以处理这个。。但是格式又是一个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants