-
-
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
egg-logger 配置不起作用 #677
Labels
Comments
配置到 |
搞个最小化的可重现的例子放到 github 看看 |
写到config.local.js里生效了 写在config.default.js里不生效 |
是的,@luckydrq 这都能猜到,感觉被坑过。 |
要干掉么 |
框架还是只设置 default 配置好了,local 等环境相关的都去掉 |
@popomore 之前用内网版本遇到过 :D |
@luckydrq 难怪....... 哈哈 |
@luckydrq 摸头 |
|
还好很少人会去看文件的。 |
框架和插件应该都不要和 env 相关 |
egg 的 config.local.js 干掉好了,里面的内容,放到 egg-development 的 config.default.js 里面,这样用户在 app 的 config.default.js 里面就可以覆盖掉。 |
This was referenced Mar 31, 2017
放 development 无法覆盖框架吧
TZ | 天猪 <[email protected]>于2017年3月31日 周五11:46写道:
… egg 的 config.local.js 干掉好了,里面的内容,放到 egg-development 的 config.default.js
里面,这样用户在 app 的 config.default.js 里面就可以覆盖掉。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#677 (comment)>, or mute
the thread
<https:/notifications/unsubscribe-auth/AAWA1WAdIuLxYXf94Qz935wrYjRFe-e0ks5rrHb9gaJpZM4Msits>
.
|
development 动态改? |
在 app.js 动态改 config 还是调用 logger 的接口? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
配置不起作用,永远都只会根据默认配置,只会输出 INFO 及以上(WARN 和 ERROR)的日志到终端中。
//config.default.js
exports.logger = {
level: 'DEBUG',
consoleLevel: 'DEBUG',
};
The text was updated successfully, but these errors were encountered: