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
- Overview — Architecture and design
- Installation — Requirements and setup
- Usage — Core patterns
- Configuration — Config options
- API Reference — Class documentation
- Examples — Code samples
- Testing — Logger testing
- Security — Security considerations
- Troubleshooting — Common issues
Related Packages
- wpzylos-core — Application foundation