pm2
pm2 copied to clipboard
pm2 monit Logs empty when running Window executable
We're using pm2 to run and monitor Windows executables for a permanent installation, it works well for the most part but I'm wondering if there is any way to route the logs into pm2 monit
's Logs window, as it is currently empty:
I run this executable with this ecosystem file (the windowsHide: false
flag is to prevent pm2 from hiding the GUI as it does by default):
module.exports = {
apps : [
{
script: '../CameraClient/vc2019/build/x64/Release/v142/CameraClient.exe',
windowsHide: false
}
]
};
I read the docs about pm2 logs (the --log
command line arg and related things) but I believe this is not what I'm looking. Our applications output logs both to STDOUT
and to file, not sure if I can make use of either of those for what I'm trying to do.
Thanks for the help, Rich
I have similar log issue as you do
I have a nodejs application managed by PM2.
When I start the application as app.js
, log messages will be saved to logs/[app]-out.txt
and logs/[app]-err.txt
.
When I start the applicaiton as npm run start
, then log messages will be all stored in pm2.txt
Not sure if this is by design or a bug/limitation.