1.0.6 • Published 5 years ago

egg-logreal v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

egg-logreal

sync logs to targetDir

Install

$ npm i egg-logreal

Usage

  • plugin.js
exports.logreal = {
  enable: true,
  package: 'egg-logreal',
};
  • config.default.js
// if any files need rotate by file size, config here
exports.logreal = {
  dir: `${app.baseDir}/log`,           // list of files that will be rotated by hour
  maxDays: 7,                     // keep max days log files, default is `7`. Set `0` to keep all logs
  interval:'2m'                   // sync times  
};
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago