Logs level
Overview
Enhance application logs by adding levels such as DEBUG, INFO, WARN, ERROR.
Implementation
- Add a new environment variable
LOG_LEVEL to configure the minimal level for messages to be logged
- Use a better logging framework if necessary
- Logging framework must support at least
DEBUG, INFO, WARN, ERROR (TRACE and FATAL are optional)
- Use semantic color for log levels if possible
- Adapt all application logs to include the level
- Log pattern:
yyyy-mm-dd hh:mm:ss:SSS LEVEL message
Logs level
Overview
Enhance application logs by adding levels such as
DEBUG,INFO,WARN,ERROR.Implementation
LOG_LEVELto configure the minimal level for messages to be loggedDEBUG,INFO,WARN,ERROR(TRACEandFATALare optional)yyyy-mm-dd hh:mm:ss:SSS LEVEL message