brianhenryie / bh-wc-logger
A PSR-3 wrapper for WooCommerce WC_Logger.
0.1.1
2024-04-20 00:44 UTC
Requires
- php: >=7.4
- psr/log: ^1.0
Requires (Dev)
- php-stubs/woocommerce-stubs: *
- phpcompatibility/phpcompatibility-wp: *
- phpstan/extension-installer: *
- squizlabs/php_codesniffer: *
- szepeviktor/phpstan-wordpress: *
- wordpress/wordpress: *
- wp-cli/wp-cli-bundle: *
- wp-coding-standards/wpcs: *
- wpackagist-plugin/woocommerce: *
This package is auto-updated.
Last update: 2024-10-21 00:37:00 UTC
README
A PSR-3 compliant logger for WooCommerce plugins.
A light shim on WC_Logger
/ wc_get_logger()
that implements Psr\Log\LoggerInterface
.
Currently just supports psr/log 1.x, i.e. compatible with PHP 5.3+. It has incomplete type hinting. psr/log 2.x+ requires PHP 8.0+. It will be an easy change to make but at the time of writing, WooCommerce (8.2) requires PHP 7.4