brianhenryie/bh-wc-logger

A PSR-3 wrapper for WooCommerce WC_Logger.

Maintainers

Package info

github.com/BrianHenryIE/bh-wc-logger

pkg:composer/brianhenryie/bh-wc-logger

Statistics

Installs: 22 760

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.1 2024-04-20 00:44 UTC

This package is auto-updated.

Last update: 2026-02-21 03:37:50 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