Skip to content

Commit

Permalink
feat(logman): add stop funciton for stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
maplemiao committed Nov 23, 2018
1 parent 8276a93 commit a26a51e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/tsw/api/logman/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ const LogMan = {
}, this.delay);
},

/**
* 停止log管理
*/
stop: function() {
logger.info('stop log manager');

this.backLog();

if (this.timer) {
clearInterval(this.timer);
}
},

/**
* 备份log
*/
Expand Down

0 comments on commit a26a51e

Please sign in to comment.