logs timezone

This commit is contained in:
Klaas Börgmann 2024-06-17 21:31:08 +02:00
parent 9a7c4fb449
commit 58773d0e35
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -13,12 +13,13 @@ const app = express();
const port = process.env.PORT;
const options = {
timeZone: 'europe/Berlin',
folderPath: './logs/',
dateBasedFileNaming: true,
fileNamePrefix: 'DailyLogs_',
fileNameExtension: '.log',
dateFormat: 'YYYY_MM_D',
timeFormat: 'h:mm:ss A',
timeFormat: 'H:mm:ss',
}
log.SetUserOptions(options);