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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
logger.info('%s', '%Y-%m-%d') // 应该输出 // %Y-%m-%d // 实际输出 // %Y-%m-NaN
在@midwayjs/logger中使用util.format对%s部分格式化一遍,然后到了winston里又被splat格式化了一遍,导致日志中输出错误。
util.format
%s
winston
splat
The text was updated successfully, but these errors were encountered:
fix: double format issue
d01f030
`splat` of `winston` takes care of message formatting. No need to format the message on `@midwayjs/logger` side. Fixed midwayjs#62
b8a60ca
Successfully merging a pull request may close this issue.
在@midwayjs/logger中使用
util.format
对%s
部分格式化一遍,然后到了winston
里又被splat
格式化了一遍,导致日志中输出错误。The text was updated successfully, but these errors were encountered: