All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.2.1 - 2022-02-10
- More concise fallback error logging when wpdb fails: The error message is only logged once per execution, it is adjusted based on the actual WordPress version and the format of the actual fallback logging is more compact as well.
2.2.0 - 2022-02-09
- The handler did not check if inserting the records into the db was successful or not. This could cause important log messages to be lost unnoticed. The handler now logs a warning into the default PHP error log and also logs the failed record there for reference.
2.1.2 - 2020-11-29
- Constructor can now be called without passing the global
$wpdb
, it'll be used by default.
2.1.1 - 2020-11-29
- The logging table size limiter caused slow logging once the limit was reached, due to the overhead of truncating the table after every row written. This is now fixed by doing the truncations in batches.
- The
set_max_table_rows()
method is deprecated, useconf_table_size_limiter()
instead. - The
maybe_truncate()
method was not intended to be used outside of the class, so it is not a public method anymore.
2.1.0 - 2020-10-15
- Feature to limit the maximum number of rows to keep in the log table. Use
set_max_table_rows()
method on the handler instance to configure the limit.
- README.md now has a section about v2 and v1 differences.
2.0.1 - 2020-10-15
- Limitations of WordPressHandler regarding formatters, whereas formatted data was only respected in the 'extra' part of the records, but not for 'message' or 'context' (#11). Note: the time column still does not follow the formatted datetime to keep compatibility with existing deployments.
2.0.0 - 2020-04-11
- This package now requires Monolog v2 or later
- Minimum required PHP version is 7.1 because of the same constraint in Monolog v2
V1 is continued to be updated for continued support for Monolog v1 and PHP versions <7.1. Meaningful changes are going to be applied to both V1 and master branches. Changes made to the V1 branch however not going to be listed here between v1.6.4 and v2.0.0. For those changes please refer to the Changelog of the V1 branch.
1.6.4 - 2020-04-11
- Previous Fix in v.1.6.3 broke compatibility with Monolog v1 and PHP versions before 7.1. Monolog v2 compatibility will be reintroduced in v2 of this package.
- PHP v5.3 compatibility made explicit in composer.json
- Added Wordpress as a development requirement
- WordPressHandler::$wpdb type declaration was incorrect in PHPDoc, set to \wpdb to point to the correct class in Wordpress
- CHANGELOG.md
1.6.3 - 2019-11-12
- Added ` quotes around additional and extra fields. This fixes issue when an extra/additional field is tried to be defined using a reserved SQL keyword as name. Example: "procedure" will cause "WordPress database error" written directly to the admin UI, and indeed failure to create logging table.
- Fixed Fatal error: Declaration of WordPressHandler\WordPressHandler->write(array $record) must be compatible with that of Monolog\Handler\AbstractProcessingHandler->write(array $record): void
- It was a mistake taking out extra fields, added back in
1.6.2 - 2017-05-26
- It was a mistake taking out extra fields, added back in
1.6.1 - 2017-05-26 [YANKED]
- $extraFields was duplication of $additionalFields, so have removed it
1.6.0 - 2017-05-26
No changelog had been maintained up to this point. Refer to the GIT commit history for more details.