-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
With the latest version of PM2 there is the ability to output all logs in JSON with the following command:
pm2 logs --json
PM2 already writes all the log in the ~/.pm2/logs folder respectively. The issue is, the format
of these logs are not in JSON and it seems there is no option in the configuration to force the
format of the output to be JSON instead.
Is there something in the documentation I am missing?
A work around is writing a deamon to spawn individual processes and redirect all STDOUT of pm2 logs [app_name] --json to ~/.pm2/logs/[app_name]-[process_id]-[type].log I am hoping that something is built in PM2 to care on this instead.
topkat