From 164a7246bd73067bac4cae58ed56abea8f46c775 Mon Sep 17 00:00:00 2001 From: Esther Date: Mon, 22 Jun 2020 22:53:27 +0100 Subject: [PATCH] Fixed??? --- config/winston.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/winston.js b/config/winston.js index 91e6c86..5d865ca 100644 --- a/config/winston.js +++ b/config/winston.js @@ -1,10 +1,11 @@ var winston = require('winston'); +var appRoot = require('app-root-path'); var logger = new winston.createLogger({ transports: [ new winston.transports.File({ level: 'info', - filename: './logs/all-logs.log', + filename: `${appRoot}/logs/app.log`, handleExceptions: true, json: true, maxsize: 5242880, //5MB