Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Feb 8, 2018
1 parent c717d0b commit 76e3ac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions docs/source/en/basics/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ In addition to the parameters just introduced, scheduled task also supports thes

### Logging

Schedule log will write to `${appInfo.root}/logs/egg-schedule.log`, you could custom by config `config.customLogger.scheduleLogger`.

Developer could use `ctx.loggers.scheduleLogger.info()` to write log at schedule task.
Schedule log will write to `${appInfo.root}/logs/egg-schedule.log`, but don't log to terminal by default, you could custom by config `config.customLogger.scheduleLogger`.

### Dynamically Configure Scheduled Tasks

Expand Down
5 changes: 1 addition & 4 deletions docs/source/zh-cn/basics/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ module.exports = {

### 执行日志

执行日志会输出到 `${appInfo.root}/logs/egg-schedule.log`,你也可以通过 `config.customLogger.scheduleLogger` 来自定义。

在任务中也可以通过 `ctx.loggers.scheduleLogger.info()` 来记录日志。

执行日志会输出到 `${appInfo.root}/logs/egg-schedule.log`,默认不会输出到控制台,可以通过 `config.customLogger.scheduleLogger` 来自定义。

### 动态配置定时任务

Expand Down

0 comments on commit 76e3ac7

Please sign in to comment.