Fix: Daily log file not adding newlines to logs, Add: Config log page loads last 5000 logs for the current day #72

This commit is contained in:
advplyr 2021-10-31 19:10:45 -05:00
parent 6ccde8f66f
commit 8ca6c62a03
8 changed files with 87 additions and 54 deletions

View file

@ -3,7 +3,7 @@ const { LogLevel } = require('./utils/constants')
class Logger {
constructor() {
this.logLevel = process.env.NODE_ENV === 'production' ? LogLevel.INFO : LogLevel.TRACE
this.logFileLevel = LogLevel.INFO
// this.logFileLevel = LogLevel.INFO
this.socketListeners = []
this.logManager = null
@ -60,7 +60,7 @@ class Logger {
level
}
if (level >= this.logFileLevel && this.logManager) {
if (level >= this.logLevel && this.logManager) {
this.logManager.logToFile(logObj)
}