systemseed/simplesamlphp-module-rollbar

一个为 SimpleSAMLphp 添加对 Rollbar 日志处理程序支持的模块。

安装: 149

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

开放问题: 0

类型:simplesamlphp-module

1.0.1 2024-07-14 18:26 UTC

This package is auto-updated.

Last update: 2024-09-14 18:47:47 UTC


README

SimpleSAMLphp + Rollbar

SimpleSAMLphp 模块

此模块为 SimpleSAMLphp 提供了一个 LoggerHandler,可以与 Rollbar 服务集成。

安装

  • 安装并配置 SimpleSAMLphp。
  • 安装 Rollbar - composer require systemseed/simplesamlphp-module-rollbar

启用 Rollbar

  • simplesamlphp/config/config.php 中填写 rollbar.token 的值,使用从 Rollbar 获取的服务器令牌。
  • simplesamlphp/config/config.php 中设置 rollbar.environment 的值以定义当前的环境名称。

配置 Rollbar 以处理 PHP 异常

simplesamlphp/config/config.php 中设置 rollbar.exception_handler 的值为 true。这将捕获并将所有异常作为单个事件记录到 Rollbar 控板。

配置 Rollbar 以处理所有日志项

logging.handler 设置为 'SimpleSAML\Module\rollbar\Logger\RollbarLoggingHandler'。请注意,启用的堆栈跟踪会导致每个堆栈跟踪行被视为单独的事件。