diff --git a/src/MasterLogger.js b/src/MasterLogger.js index f904e4c..d46693f 100644 --- a/src/MasterLogger.js +++ b/src/MasterLogger.js @@ -118,7 +118,7 @@ class MasterLogger { if (!type) throw new Error('Missing file type'); - const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}-${date}.log`; + const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}.log`; const filePath = path.join(this.directory, fileName); if (!fs.existsSync(filePath))