-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add ctx.getLogger(name) #36
Comments
那默认都加上?ctx.loggers 对象? |
ctx.loggers 对象实现太麻烦,还是 ctx.getLogger(name) 比较简单。 |
动态创建?如果非动态的和 ctx.loggers 是一样的,和 app.loggers 实现一致。 |
后面app的也统一推荐使用getLogger接口吧 Sent from my iPhone
|
那要动态创建加缓存了,其实 loggers 就是用 map,只是提前初始化了。 |
这个做了没? |
没做。 |
it can be override with custom logical Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
it can be override with custom function Closes #36
https://github.com/eggjs/egg/blob/master/lib/core/app/extend/context.js#L207
方便获取自定义 logger,并且自动填充 ctx 信息,就如 ctx.logger 一样。
The text was updated successfully, but these errors were encountered: