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
如果直接调用package的全局变量打log,目前只能支持一个全局prefix,但是可能在多个package打印log,需要多个prefix。
如果给formatHeader传入一个可选参数prefix,可以支持全局变量打多个prefix (https://github.com/lodastack/log/blob/master/log.go#L153)
可以考虑下是否支持
The text was updated successfully, but these errors were encountered:
或者去掉全局的SetPrefix,不给全局log设置prefix。(建议有需求的new自己的log对象)
Sorry, something went wrong.
No branches or pull requests
如果直接调用package的全局变量打log,目前只能支持一个全局prefix,但是可能在多个package打印log,需要多个prefix。
如果给formatHeader传入一个可选参数prefix,可以支持全局变量打多个prefix
(https://github.com/lodastack/log/blob/master/log.go#L153)
可以考虑下是否支持
The text was updated successfully, but these errors were encountered: