newism/craft-rollbar

此包已被弃用且不再维护。没有建议的替代包。

CraftCMS的Rollbar集成

安装数9,990

依赖关系: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 5

开放问题: 4

类型:craft-plugin

1.3.0 2021-10-25 11:40 UTC

This package is auto-updated.

Last update: 2024-09-09 10:14:03 UTC


README

此插件现已归档。

有关Rollbar的替代实现,请参阅:https://johnhenry.ie/articles/2024/08/error-reporting-with-rollbar-and-craft-cms

Rollbar for Craft CMS

Craft CMS的Rollbar插件

此插件为Craft CMS v3.x提供了Rollbar集成。

功能

  • PHP异常报告到Rollbar
  • JS异常报告到Rollbar(可选)

要求

此插件需要Craft CMS 3.1或更高版本

安装

插件商店

要安装Rollbar,请导航到Craft控制面板的插件商店部分,搜索Rollbar,然后点击“试用”按钮。

Composer

您还可以使用Composer将包添加到您的项目中。

  1. 打开您的终端并进入Craft项目

     cd /path/to/project
    
  2. 然后让Composer加载插件

     composer require newism/craft-rollbar
    
  3. 在控制面板中,转到设置 → 插件,并点击Rollbar的“安装”按钮。

配置

首先,您需要设置一个Rollbar账户

一旦您有了账户,您将获得一个访问密钥

要添加Afterpay支付网关,请转到设置 → 插件 → Rollbar,并输入访问密钥。

然后,您可以选择使用配置文件来配置您的Rollbar网关。一个示例文件如下

<?php
return [
    // Your project's post_server_item access token, which you can find in the Rollbar.com interface.
    "accessToken" => '',

    // See: https://docs.rollbar.com/docs/browser-js
    "enableJs" => '',

    // Your project's post_client_item access token, which you can find in the Rollbar.com interface.
    'postClientItemAccessToken' => '',
    
    // If you wish Rollbar to ignore any exception types, please provide the fully qualified name here, separated by a comma
    'exceptionIgnoreList' => '',
]; 

路线图

  1. 实现日志级别
  2. 更多配置选项

支持

GitHub

如果您发现了一个错误,或者想提出一个功能请求,请访问GitHub仓库并提交一个问题。我们也非常欢迎pull requests!

Twitter

通过使用#craftcms标签并在Twitter上提及@newism来引起我们的注意。

Stack Exchange

通过Craft Stack Exchange提问并使用标签plugin-newism-craft-rollbar

Email

如有任何反馈、评论、问题或建议,请通过电子邮件发送到support at newism.com.au

许可

您可以在开发环境中无限期地尝试此插件。

有关更多信息,请参阅Craft的商业插件许可

Afterpay for Craft Commerce icon

Newism提供