alphavel / logging
PSR-3 compliant logging package for Alphavel Framework
v1.0.0
2025-11-26 15:47 UTC
Requires
- php: >=8.4
- alphavel/alphavel: ^1.0
- psr/log: ^3.0
README
PSR-3 compliant logger with multiple channels
✨ Features
- 📝 PSR-3 compliant - Standard logger interface
- 📁 Multiple channels - File, stdout, stderr
- 🎯 Laravel-compatible - Familiar API
- 🚀 Swoole-safe - Coroutine-compatible
📦 Installation
composer require alphavel/logging
🚀 Quick Start
use Log; // Log levels (PSR-3) Log::emergency('System down'); Log::alert('Immediate action needed'); Log::critical('Critical condition'); Log::error('Runtime error'); Log::warning('Warning message'); Log::notice('Normal but significant'); Log::info('Informational message'); Log::debug('Debug information'); // With context Log::info('User logged in', ['user_id' => 123]);
📚 Documentation
Full documentation: https://github.com/alphavel/documentation/blob/master/packages/logging/README.md
📄 License
MIT License