定制 apextoolbox/symfony-logger 二次开发

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

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

apextoolbox/symfony-logger

Composer 安装命令:

composer require apextoolbox/symfony-logger

包简介

Apex Toolbox Symfony Bundle

README 文档

README

PHP Version Symfony

Automatic error tracking, logging, and performance monitoring for Symfony applications.

Installation

composer require apextoolbox/symfony-logger

Register the bundle in config/bundles.php (if not auto-registered):

return [
    // ...
    ApexToolbox\SymfonyLogger\ApexToolboxBundle::class => ['all' => true],
];

Add to .env:

APEX_TOOLBOX_ENABLED=true
APEX_TOOLBOX_TOKEN=your_token_here

Create config/packages/apex_toolbox.yaml:

apex_toolbox:
    enabled: '%env(bool:APEX_TOOLBOX_ENABLED)%'
    token: '%env(resolve:APEX_TOOLBOX_TOKEN)%'

Done! The SDK automatically captures exceptions, logs, and database queries.

Configuration

Environment Variables

Variable Description Default
APEX_TOOLBOX_TOKEN Your project token Required
APEX_TOOLBOX_ENABLED Enable/disable tracking true

Path Filtering

apex_toolbox:
    path_filters:
        include: ['*']
        exclude: ['_profiler/*', '_wdt/*']

Sensitive Data

Sensitive fields like password, token, authorization are automatically excluded from logs.

Requirements

  • PHP 8.0+
  • Symfony 5.4, 6.x, or 7.x

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-26