onedesign/airbrake-craft

Logs Craft 3 server-side errors to airbrake.io.

dev-master 2022-05-27 20:46 UTC

This package is auto-updated.

Last update: 2024-08-29 05:06:52 UTC


README

Logs Craft 3 server-side errors to airbrake.io.

Requirements

This plugin requires Craft CMS 3.0.0 or later and an account on airbrake.io.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require onedesign/airbrake-craft
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for airbrake.

airbrake Overview

This is a simple plugin that will send Craft and php errors to Airbrake. You need to have an airbrake.io account to use this.

Configuring airbrake

Copy the config file from plugins/airbrake/src/config.php to config/airbrake.php and then set the following environment variables.

# Airbrake Logging
AIRBRAKE_PROJECT_ID=""
AIRBRAKE_PROJECT_KEY=""
AIRBRAKE_ENABLED=false

Using airbrake

Install the plugin and make sure your environment variables are configured properly. That's it.

  • Release it

Brought to you by One Design Company