Improve Response verbose/debug logging

This commit is contained in:
2022-03-30 21:38:25 -05:00
parent 10b3e1ecc3
commit 6f66126d38
4 changed files with 16 additions and 4 deletions

View File

@@ -1,15 +1,17 @@
import {Container} from '../di'
import {
ErrorWithContext,
FileLogger,
globalRegistry,
ifDebugging,
infer,
isLoggingLevel, logIfDebugging,
isLoggingLevel,
LoggingLevel,
logIfDebugging,
PathLike,
StandardLogger,
universalPath,
UniversalPath,
FileLogger,
ifDebugging,
} from '../util'
import {Logging} from '../service/Logging'
import {RunLevelErrorHandler} from './RunLevelErrorHandler'
@@ -221,6 +223,7 @@ export class Application extends Container {
logging.registerLogger(file)
}
logging.level = LoggingLevel.Verbose
logging.verbose('Attempting to load logging level from the environment...')
const envLevel = this.env('EXTOLLO_LOGGING_LEVEL')