Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
14.68 KB
MD5: 654c476c1f910c799979974e42628276
SHA-1: 837a7cad656d683a6a8c1b5aecabba92bb6dcd98
SHA-256: 3d8226c8a401cded39f33d6d4490b0b946cfdd679fdec6de2798943f3697d4ef
Download zip
20.71 KB
MD5: f0a540997c20c32dfac5f208df0ce8cc
SHA-1: d0bc38cf903864668af0a1940052cee49f0ea369
SHA-256: f7db7dc6401666af7b14677a07ce7def2061d11417e12f43ed3d923a7cc60725
Release notes
Bug fixes
- #3633954: Fix channel, escaping and severity handling, and expand test coverage
- The
channelvalue in a request is now used. Previously every entry was logged torestfullogger, even though the response showed the requested channel. Channel names must match^[a-zA-Z0-9_-]{1,64}$. A request with an invalid channel name now gets a 400 instead of a 200. - Messages and paths are escaped once instead of twice, so special characters such as
<and&display correctly in dblog and in the response. - Severity is validated against the PSR-3 levels regardless of site language. On translated sites, valid severities no longer fall back to notice.
- Tests are much broader: a new kernel test, plus functional tests for access, validation and the help page.
- The
Developer note
RestfulLogger::__construct() takes a new trailing LoggerChannelFactoryInterface argument. This only affects code that subclasses the plugin.