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

feat: mv egg logger local config to development #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ see [config/config.default.js](https:/eggjs/egg-development/blob/mas

## Features

- Under development environment, Output request log in STDOUT, statistic and output all key parts time-consuming;
- Watch file changes, and reload application;
- Under development environment, Output request log in STDOUT, statistic and output all key parts time-consuming
- Watch file changes, and reload application
- Set logger default level to `DEBUG`

### About Reload

Expand Down
5 changes: 3 additions & 2 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ exports.development = {

## 功能

- 开发环境的请求日志在 STDOUT 输出,并统计各个关键部位耗时并输出;
- 监视应用文件变动,实现 Reload 重新加载新的代码;
- 开发环境的请求日志在 STDOUT 输出,并统计各个关键部位耗时并输出
- 监视应用文件变动,实现 Reload 重新加载新的代码
- 默认的 logger level 改为 `DEBUG`

### 关于 Reload

Expand Down
8 changes: 8 additions & 0 deletions config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ exports.development = {
ignoreDirs: [],
fastReady: true,
};

exports.logger = {
level: 'DEBUG',
coreLogger: {
consoleLevel: 'WARN',
},
buffer: false,
};
20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@
},
"keywords": [
"egg",
"plugin",
"egg-plugin",
"eggPlugin"
],
"dependencies": {
"debounce": "^1.0.0"
},
"devDependencies": {
"autod": "^2.7.1",
"egg": "^0.9.0",
"egg-bin": "^2.0.1",
"egg-ci": "^1.1.0",
"egg-mock": "^2.1.0",
"eslint": "^3.14.0",
"autod": "^2.8.0",
"egg": "^1.0.0",
"egg-bin": "^3.2.0",
"egg-ci": "^1.6.0",
"egg-mock": "^3.2.0",
"eslint": "^3.18.0",
"eslint-config-egg": "^3.2.0",
"ko-sleep": "^1.0.2",
"rimraf": "^2.5.4",
Expand All @@ -46,18 +45,15 @@
"ci": {
"version": "6, 7"
},
"repository": {
"type": "git",
"url": "git+https:/eggjs/egg-development.git"
},
"repository": "[email protected]:eggjs/egg-development.git",
"files": [
"agent.js",
"app",
"config",
"app.js"
],
"bugs": "https:/eggjs/egg/issues",
"homepage": "https:/eggjs/egg-development#readme",
"homepage": "https:/eggjs/egg-development",
"author": "jtyjty99999",
"license": "MIT"
}