Version 2.0.2 Release Notes!
Performed the following updates:
- Made frequency of logging configurable based on severity level
- Made frequency of console logging configurable based on severity level
- Created global helpers for logging based on severity level
- Created global helpers for console logging based on severity level
- Updated documentation to reflect updates
- Fixed binding issue in tableExists function in DB class
- Resolved issue where sensitive data can be written to log
- Added section to Config and Env Classes to describe configuration file
- Improved workflow of messaging when incorrect logging level is provided to Logger::log()
- Improved workflow of messaging when incorrect logging level is provided to Tools::info()
- Improved workflow of messaging when invalid background and/or text color is provided to Tools::info()
- Moved all Console related features in Tools class to ConsoleLogger class
- Updated api docs to reflect changes
Update to config:
- Set the
LOGGINGvariable to a value based on PSR-3 severity levels - Add below
DB_PASSWORDtheDB_LOG_PARAMSvariable and set it tofull,masked, ornone - In
config\config.phpensure the array element looks as follows:logging' => Env::get('LOGGING'), - In
config\database.phpadd the following:db_log_params' => Env::get('DB_LOG_PARAMS' ?? 'none'),
Other updates:
For all calls to Tools::info use new globals or change call to ConsoleLogger::log. Any constants passed used formerly by the Tools class should be changed to ConsoleLogger.