Skip to content

Commit

Permalink
feat: Update index.d.ts (#2853)
Browse files Browse the repository at this point in the history
##### Checklist

- [x] `npm test` passes
- [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message follows commit guidelines

##### Affected core subsystem(s)

补充了 typescript 格式的定义

##### Description of change

补充了 config.logger 中两个配置项
  • Loading branch information
zfben authored and popomore committed Jul 28, 2018
1 parent c0b0bb8 commit 422b342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Expand Up @@ -253,26 +253,30 @@ declare module 'egg' {
* @property {String} encoding - log file encloding, defaults to utf8
* @property {String} level - default log level, could be: DEBUG, INFO, WARN, ERROR or NONE, defaults to INFO in production
* @property {String} consoleLevel - log level of stdout, defaults to INFO in local serverEnv, defaults to WARN in unittest, defaults to NONE elsewise
* @property {Boolean} disableConsoleAfterReady - disable logger console after app ready. defaults to `false` on local and unittest env, others is `true`.
* @property {Boolean} outputJSON - log as JSON or not, defaults to false
* @property {Boolean} buffer - if enabled, flush logs to disk at a certain frequency to improve performance, defaults to true
* @property {String} errorLogName - file name of errorLogger
* @property {String} coreLogName - file name of coreLogger
* @property {String} agentLogName - file name of agent worker log
* @property {Object} coreLogger - custom config of coreLogger
* @property {Boolean} allowDebugAtProd - allow debug log at prod, defaults to true
*/
logger: {
dir: string;
encoding: string;
env: EggEnvType;
level: LoggerLevel;
consoleLevel: LoggerLevel;
disableConsoleAfterReady: boolean;
outputJSON: boolean;
buffer: boolean;
appLogName: string;
coreLogName: string;
agentLogName: string;
errorLogName: string;
coreLogger: any;
allowDebugAtProd: boolean;
};

httpclient: {
Expand Down

0 comments on commit 422b342

Please sign in to comment.