We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
log: log_format_text: true # 日志的输出格式,json或者plaintext,true会输出成plaintext格式,false会输出成json格式
plaintext 没有生效,看代码也只有 JSON 的 NewJSONEncoder
The text was updated successfully, but these errors were encountered:
@chf007 嗯,这块之前是用的其它库,后来替换为 zap, 目前只实现了json格式,zap暂时还不支持plaintext的,所以也没加上。当然如果有需要使用 plaintext,也可以自己实现 zapcore.Encoder 接口来做。
zapcore.Encoder
目前来看使用json格式基本满足日常使用。
Sorry, something went wrong.
好的,明白了
No branches or pull requests
plaintext 没有生效,看代码也只有 JSON 的 NewJSONEncoder
The text was updated successfully, but these errors were encountered: