laravel-roadrunner-logger maintained by hungthai1401
Description
A Laravel logger wrapper for RoadRunner app-logger
Author
Last update
2025/05/21 04:28
(dev-main)
License
Downloads
170
Laravel RoadRunner Logger
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.