Skip to content
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

config.json在哪里? #6

Closed
derek2035 opened this issue Oct 25, 2015 · 1 comment
Closed

config.json在哪里? #6

derek2035 opened this issue Oct 25, 2015 · 1 comment

Comments

@derek2035
Copy link

用yog2创建的项目,没有找到哪里有config.json啊,怎么开启yog-log呢?

在代码中require('yog-log'),提示cannot find module 'yog-log'

yog-log不是内置的吗?还需要单独安装吗?

@hefangshi
Copy link
Member

不需要单独安装,不需要自行require,如果你跟着文档走,直接使用

yog.log.notice('xxx');
yog.log.fatal('xxx');

即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants