1.1.0 • Published 3 years ago

pm2-log-schedule v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Description:

Regular cleanup service log,every time the Module service is started

PM2 module to automatically clear logs

pm2-log-schedule

Install

$ npm install pm2 -g

$ pm2 install pm2-log-schedule

Configuration

  • logPath (Defaults to /home/web/logs) Define log path on the server
  • pattern (Defaults to \\d{4}-\\d{2}-\\d{2}\\.log) Log name that needs to be extracted
  • days (Defaults to 7) leaning the cycle of the log

How to set these values ?

e.g:

  • pm2 set pm2-log-schedule:days 7 (Interval 7 days)

Uninstall

$ pm2 uninstall pm2-log-schedule

License

MIT

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago