定制 xiloryx/log-collector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

xiloryx/log-collector

最新稳定版本:1.3.0

Composer 安装命令:

composer require xiloryx/log-collector

包简介

Laravel error collector package for Xiloryx Log monitoring system

README 文档

README

Laravel package for sending errors to Xiloryx Log — real-time error monitoring for Laravel applications.

Installation

composer require xiloryx/log-collector

That's it. The package auto-registers itself via Laravel's package discovery.

Configuration

1. Add your API key

Add the following to your .env file:

XILORYX_LOG_API_KEY=your_project_api_key_here

You can find your API key in your project settings on log.xiloryx.fr.

2. (Optional) Publish the config file

php artisan vendor:publish --tag=xiloryx-log-config

This gives you access to the full config at config/xiloryx-log.php.

Available environment variables

Variable Default Description
XILORYX_LOG_API_KEY null Required. Your project API key
XILORYX_LOG_ENABLED true Enable/disable error reporting
XILORYX_LOG_HEARTBEAT false Enable request counting (premium)

Features

Error reporting

All unhandled exceptions are automatically captured and sent to your dashboard — no code changes required. The package hooks into Laravel's exception handler on boot.

Each error includes:

  • Exception message, file, and line
  • Full stack trace
  • Request URL, method, and IP
  • Authenticated user ID (if available)
  • PHP version and environment

Project Health (premium)

When XILORYX_LOG_HEARTBEAT=true, the package tracks your total request count using a local cache buffer. Requests are batched and sent to Xiloryx Log every 100 hits — zero performance impact on your app.

This powers the Project Health dashboard: total requests, total errors, and error rate over 30 days.

Silent by design

The package will never throw an exception or slow down your application:

  • All HTTP calls to Xiloryx Log have a 2-second timeout
  • Every failure is caught and silently ignored
  • Heartbeat runs in the terminate() phase, after the response is sent

Requirements

  • PHP 8.1 or higher
  • Laravel 10, 11, or 12
  • Guzzle HTTP client (included with Laravel)

Support

For support: contact@xiloryx.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固