xiloryx/log-collector
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
xiloryx/log-collector 适用场景与选型建议
xiloryx/log-collector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.19k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 xiloryx/log-collector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xiloryx/log-collector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-02-20