logs timezone
This commit is contained in:
parent
9a7c4fb449
commit
58773d0e35
3
app.js
3
app.js
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue