hungthai1401 / laravel-roadrunner-logger
A Laravel logger wrapper for RoadRunner app-logger
v1.0.0
2025-05-21 02:28 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
- roadrunner-php/app-logger: ^1.0
Requires (Dev)
- laravel/pint: ^1.22
- orchestra/testbench: ^7.0|^8.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.0
Suggests
- spiral/roadrunner: 🤯 High-performance PHP application server, process manager written in Go and powered with plugins
README
A Laravel logger wrapper for the RoadRunner app-logger, allowing seamless integration of RoadRunner's logging capabilities into your Laravel application.
Requirements
- PHP 8.1 or higher
- Laravel 9.x or higher
- RoadRunner app-logger 1.0 or higher
Installation
You can install the package via Composer:
composer require hungthai1401/laravel-roadrunner-logger
Usage
Configuration
After installation, you can set RoadRunner RPC address in your .env
file, or use the default value tcp://127.0.0.1:6001
:
RR_RPC=...
Logging
You can use the logger in your Laravel application by specifying the 'roadrunner' channel:
logger('rr')->info('This is an info message');
Or directly via the Log facade:
use Illuminate\Support\Facades\Log; Log::channel('rr')->error('An error occurred');
Testing
composer test:unit
License
The MIT License (MIT). Please see License File for more information.