I use pm2 to keep my node.js app alive, I am starting my app with a configuration file that looks like this:
{
"name" : "myApp",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"ignoreWatch" : ["node_modules","public"],
"watch" : true,
}
Additionally I am using the package colors to identify different types of messages but all the logs lose their color when I run the command
pm2 logs
My question is: what can I add to my configuration file to be able to see the colors in console?
pm2 start app.js -- --color
if you don't use a config file, as seen @ github.com/Unitech/pm2/issues/1719#issuecomment-151446644 – Acidity