afsdev/laravel-ray-log-channel 问题修复 & 功能扩展

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

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

afsdev/laravel-ray-log-channel

最新稳定版本:v1.0.1

Composer 安装命令:

composer require afsdev/laravel-ray-log-channel

包简介

Log messages using Spatie Ray

README 文档

README

A log channel that sends all laravel logging through Ray.

Using Ray to monitor log messages makes debugging during development easier more convenient to tailing the laravel log, but it can also be useful when monitoring production applications through SSH.

Features

  • Allows dumping complex data structures (models, large arrays, etc) that don't translate well to text only log files
  • Each level can be assigned to a different color, which also allows it to be filtered
  • The filename and line number of the log message is included in each log, so one click brings your editor to the exact place the log message was called
  • Minimum log level and colors are configurable

Examples

Install

You can install this package via composer using this commands:

composer require afsdev/laravel-ray-log-channel

Configuration

Add the channel to config/logging.php

'channels' => [
  ...
  'ray' => [
    'driver' => 'ray',
    'level' => 'debug',
  ]
]

Use the log channel in .env :

LOG_CHANNEL=ray

Optionally, you can customize the used colors for each level:

'ray' => [
  'driver' => 'ray',
  'level' => 'debug',
  'colors' => [ 
      'blue' => ['DEBUG', 'INFO'],
      'green' => ['NOTICE'],
      'yellow' => ['WARNING'],
      'red' => ['ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY', 'API'],
  ]
]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-02