From d87fc07a8eb82b20264dee11bda03fd8f6e4b651 Mon Sep 17 00:00:00 2001 From: yogiedigital Date: Tue, 4 Nov 2025 05:46:55 +0000 Subject: [PATCH] Update ecosystem.config.js --- ecosystem.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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