This is a pm2 module. It can collect all of the logs on the cloud server through cpm-worker.
Must tie in with the cpm-worker
Quick Start
##Install
$ pm2 install cpm-master
##Configure
-
address
: the address will receive the logs from the cloud node. -
log_path
: Log file storage path. Supported format specifiers: APPNAME -
max_size
: The maximum length of a single log file.
e.g:
$ pm2 set cpm-worker:address 0.0.0.0:3000
$ pm2 set cpm-worker:log_path /runtimelog/app
$ pm2 set cpm-worker:log_path /runtimelog/app/{APPNAME}
$ pm2 set cpm-worker:max_size 10M
##Future