diff --git a/ecosystem.config.js b/ecosystem.config.js index 83bdbbf..2941c50 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,7 +1,7 @@ module.exports = { apps: [ { - name: "bengkel-api", + name: "call-of-duty-api", script: "./index.js", // Path to your entry file env: { NODE_ENV: "development", @@ -9,6 +9,11 @@ module.exports = { env_production: { NODE_ENV: "production", }, + // Logging configuration + error_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-error.log", + out_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-out.log", + log_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-combined.log", // optional combined file + time: true, // adds timestamps to logs }, ], }; \ No newline at end of file