Update:Logs to use server local timezone instead of UTC #656

This commit is contained in:
advplyr 2022-06-18 11:34:28 -05:00
parent 91e30a6e84
commit fd13607d89
4 changed files with 12 additions and 12 deletions

View file

@ -1,16 +1,16 @@
const date = require('date-and-time')
const { LogLevel } = require('./utils/constants')
class Logger {
constructor() {
this.logLevel = process.env.NODE_ENV === 'production' ? LogLevel.INFO : LogLevel.TRACE
// this.logFileLevel = LogLevel.INFO
this.socketListeners = []
this.logManager = null
}
get timestamp() {
return (new Date()).toISOString()
return date.format(new Date(), 'YYYY-MM-DD HH:mm:ss')
}
get levelString() {