Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
Not getting any logs for log4js with PM2

I am running some apps using PM2 (proxying through Nginx) on Debian 10. All apps where triggered without a PM2 config file. But it doesn't write to the log files it's configured to use. Works fine running via NPM on my local machine.

I tried following the answers given here: Not getting any logs for node process running through pm2 in cluster mode

But it doesn't seem to be working still.

Here is my log4js config:

    appenders: {
        API_log: { type: 'file', filename: './logs/API_Call.log' },
        processing_log: { type: 'file', filename: './logs/processing.log' }
    },
    categories: {
      default: { appenders: [ 'API_log' ], level: 'debug' },
      processing: { appenders: [ 'processing_log' ], level: 'debug' }
    }, pm2: true
  });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!