hungthai1401/laravel-roadrunner-logger

A Laravel logger wrapper for RoadRunner app-logger

v1.0.0 2025-05-21 02:28 UTC

This package is auto-updated.

Last update: 2025-05-22 07:55:38 UTC


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.