pm2-logs Pm2 cli logs interface Programmatic useformat: var logs = require('pm2-logs')({format: 'some moment format'}) Test node bin/index.js sh test/test.sh