hungthai1401/laravel-roadrunner-logger 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hungthai1401/laravel-roadrunner-logger

最新稳定版本:v1.0.0

Composer 安装命令:

composer require hungthai1401/laravel-roadrunner-logger

包简介

A Laravel logger wrapper for RoadRunner app-logger

README 文档

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.

统计信息

  • 总下载量: 130
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-22