Reputation: 619
I am using pm2
for a Node.js app. I am trying to have the pm2 have a crash report log to a file.
I am currently using an ecosystem
file:
module.exports = {
apps: [
{
name: 'main',
script: 'npm',
args: 'run start',
error_file: '../logs/err.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
},
],
};
On my last crash report I had only the line "killed" without it saying why or any stack trace
2025-01-12 10:00:51: Killed
2025-01-12 10:00:55: (node:274669) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
2025-01-12 10:00:55: (Use `node --trace-warnings ...` to show where the warning was created)
2025-01-12 10:00:58: (node:274669) Warning: NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
2025-01-12 10:00:58: no longer support Node.js 16.x on January 6, 2025.
2025-01-12 10:00:58:
2025-01-12 10:00:58: To continue receiving updates to AWS services, bug fixes, and security
2025-01-12 10:00:58: updates please upgrade to a supported Node.js LTS version.
2025-01-12 10:00:58:
2025-01-12 10:00:58: More information can be found at: https://a.co/74kJMmI
2025-01-12 10:01:00: (node:274687) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
2025-01-12 10:01:00: (Use `node --trace-warnings ...` to show where the warning was created)
2025-01-12 10:01:03: (node:274693) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
2025-01-12 10:01:03: (Use `node --trace-warnings ...` to show where the warning was created)
How can I have my logs more informational?
Upvotes: 0
Views: 22