WPZylos Logger

PSR-3 compliant logging for WPZylos framework.

What You Get

  • PSR-3 Compliant — Standard logger interface
  • Dual Output — File and error_log (when WP_DEBUG enabled)
  • Log Levels — Emergency to Debug levels
  • Context Support — Structured logging with interpolation
  • Daily Log Files — Automatic daily file organization with cleanup

Quick Start

use WPZylos\Framework\Logger\Logger;

$logger = new Logger($context);

$logger->info('User logged in', ['user_id' => 123]);
$logger->error('Payment failed', ['order_id' => 456]);
$logger->debug('API response', ['body' => $response]);

Documentation