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 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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue