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 port = process.env.PORT;
const options = { const options = {
timeZone: 'europe/Berlin',
folderPath: './logs/', folderPath: './logs/',
dateBasedFileNaming: true, dateBasedFileNaming: true,
fileNamePrefix: 'DailyLogs_', fileNamePrefix: 'DailyLogs_',
fileNameExtension: '.log', fileNameExtension: '.log',
dateFormat: 'YYYY_MM_D', dateFormat: 'YYYY_MM_D',
timeFormat: 'h:mm:ss A', timeFormat: 'H:mm:ss',
} }
log.SetUserOptions(options); log.SetUserOptions(options);