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

单独加开关自动隐藏日志里所有的Q号群号等信息 #1229

Open
Miuzarte opened this issue Dec 8, 2021 · 1 comment
Open

单独加开关自动隐藏日志里所有的Q号群号等信息 #1229

Miuzarte opened this issue Dec 8, 2021 · 1 comment

Comments

@Miuzarte
Copy link

Miuzarte commented Dec 8, 2021

debug模式下日志里能看到Q号群号的地方太多了,很容易一不留意就没发现
上次交日志的时候全局替换掉了测试用的Q号群号,后来因为issue提交失败重写的时候才发现混入了其他群消息的信息
能分开前台日志和文件日志的开关的话更好,比如只隐藏文件日志里的,这样的话复制粘贴就方便多了

@bin-tenkuu
Copy link

其实最好的办法就像 log4j 一样,在配置文件里面配置日志自定义格式,然后打印log的时候就根据配置好的格式输出log

搜了一下好像有现成的,不过不知道能不能用,log4go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants