Skip to content

Commit

Permalink
force drop when more than 30 log file by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed May 15, 2018
1 parent c73f112 commit 7bccdeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To install a specific version use the `@<version>` suffix
## Configure

- `max_size` (Defaults to `10M`): When a file size becomes higher than this value it will rotate it (its possible that the worker check the file after it actually pass the limit) . You can specify the unit at then end: `10G`, `10M`, `10K`
- `retain` (Defaults to `all`): This number is the number of rotated logs that are keep at any one time, it means that if you have retain = 7 you will have at most 7 rotated logs and your current one.
- `retain` (Defaults to `30` file logs): This number is the number of rotated logs that are keep at any one time, it means that if you have retain = 7 you will have at most 7 rotated logs and your current one.
- `compress` (Defaults to `false`): Enable compression via gzip for all rotated logs
- `dateFormat` (Defaults to `YYYY-MM-DD_HH-mm-ss`) : Format of the data used the name the file of log
- `rotateModule` (Defaults to `true`) : Rotate the log of pm2's module like other apps
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pm2-logrotate",
"version": "2.4.0",
"version": "2.6.0",
"description": "Module to rotate logs of every pm2 application",
"main": "app.js",
"dependencies": {
Expand Down Expand Up @@ -32,7 +32,7 @@
],
"config": {
"max_size": "10M",
"retain": "all",
"retain": "30",
"compress": false,
"dateFormat": "YYYY-MM-DD_HH-mm-ss",
"workerInterval": "30",
Expand Down

0 comments on commit 7bccdeb

Please sign in to comment.