wpdiggerstudio/wpzylos-logger

PSR-3 compliant logging for WPZylos framework

Fund package maintenance!
Paypal

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/wpdiggerstudio/wpzylos-logger

v1.0.0 2026-02-01 13:02 UTC

This package is auto-updated.

Last update: 2026-02-01 13:03:48 UTC


README

PHP Version License GitHub

PSR-3 compliant logging for WPZylos framework.

📖 Full Documentation | 🐛 Report Issues

✨ Features

  • PSR-3 Compliant — Standard logger interface
  • Multiple Channels — File, error_log, WP Debug Bar
  • Log Levels — Emergency to Debug levels
  • Context Support — Structured logging with context
  • Log Rotation — Automatic file rotation

📋 Requirements

Requirement Version
PHP ^8.0
WordPress 6.0+

🚀 Installation

composer require wpdiggerstudio/wpzylos-logger

📖 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]);

🏗️ Core Features

Log Levels

$logger->emergency('System is unusable');
$logger->alert('Action must be taken immediately');
$logger->critical('Critical conditions');
$logger->error('Error conditions');
$logger->warning('Warning conditions');
$logger->notice('Normal but significant condition');
$logger->info('Informational messages');
$logger->debug('Debug-level messages');

Context Data

$logger->info('Order placed', [
    'order_id' => $order->id,
    'user_id' => $user->id,
    'total' => $order->total,
]);

Log Files

// Logs written to: wp-content/plugins/my-plugin/logs/debug.log
$logger->info('Application started');

📦 Related Packages

Package Description
wpzylos-core Application foundation
wpzylos-scaffold Plugin template

📖 Documentation

For comprehensive documentation, tutorials, and API reference, visit wpzylos.com.

☕ Support the Project

If you find this package helpful, consider buying me a coffee! Your support helps maintain and improve the WPZylos ecosystem.

Donate with PayPal

📄 License

MIT License. See LICENSE for details.

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Made with ❤️ by WPDiggerStudio