Raygun4CFML is a client library for integrating Raygun's Crash Reporting service with your CFML applications. It enables you to send error reports and crash data to Raygun for tracking and analysis.
Supported Platforms:
- Adobe ColdFusion 2021+
- Lucee 5.3+
- Boxlang 1+
Current Version: 2.0.0
2.0.0 is a complete rewrite of the project and is ready-to-use for the 3 major CFML engines and their crash reports.
Please be aware that no testing and work has yet gone into framework-specific crash reports, e.g. a deeper integration with Coldbox HVMC, Fusebox, CF on Wheels etc. This will be added over time in future releases.
- Testbox (used as a development dependency for local and CI testing)
-
Install via CommandBox:
To install the latest version from the master repository, use:
box install raygun4cfml
To install a specific release or tag, use:
box install git://github.com/MindscapeHQ/raygun4cfml.git#{tagname}
Alternatively, you can use:
box install MindscapeHQ/raygun4cfml#{tagname}
-
Setup:
After installation, follow the setup instructions in the 'Library Usage' section below.
-
Clone or Download:
- Fork and clone the repository to your local system, or download a zip file of the current content or a specific release/tag.
-
Move Files:
- Move the
src
and/ortests
directories to locations suitable for your system.
- Move the
-
Dependencies:
- Note that manual installation will not automatically resolve dependencies.
The RaygunClient
is the primary component for sending error reports. You can initialize it in several ways depending on your setup:
-
Webroot Setup:
Place the contents of
/src
in your webroot and initialize theRaygunClient
as follows:raygun = createObject("component", "com.raygun.RaygunClient").init( apiKey = "YOURAPIKEYHERE" );
-
Custom Mapping:
Place the contents of
/src
in a directory of your choice and create a mapping to/com
in your server administrator or through code. Them, initialise as suitable for the mapping.
-
Error Reporting:
Once initialized, use the
RaygunClient
to send error reports with the.send()
function. Refer to the/samples
directory for examples. -
Testing:
The
/tests
directory contains structures for Testbox unit and integration tests. Use these to validate your integration.
For detailed version history, refer to the CHANGELOG.md
file.
Raygun4CFML is not an official Raygun library and is not maintained by Raygun staff.
Contributions are welcome.
Please fork the main repository at https://github.com/MindscapeHQ/raygun4cfml, create a feature branch, and submit a pull request. Coordination via X (@AgentK) or GitHub (https://github.com/TheRealAgentK/) is encouraged before starting any work.
For more active development, visit my development fork at https://github.com/TheRealAgentK/raygun4cfml.