BoxLang 🚀 A New JVM Dynamic Language Learn More...
Log your Coldbox errors using Bugsnag and the Bugsnag Notify API.
At minimum, you will need a Bugsnag API key. You can get this from the Bugsnag Dashboard Settings page.
In /config/Coldbox.cfc
's configure()
method, add bugsnag.apiKey
setting to the moduleSettings
struct like so:
function configure(){
moduleSettings = {
bugsnag = {
ApiKey: "PLEASE_SET_ME"
}
};
}
The following settings are available:
moduleSettings = {
bugsnag = {
"ApiKey": "REQUIRED",
// is this app in development, staging, or production?
"releaseStage": "development",
// only notify for these environments
"notifyReleaseStages": ["development","staging","production"], // NOT IMPLEMENTED
// automatically log items using a Logbox appender
"enableLogBoxAppender" = true,
// Min/Max levels for appender
"levelMin" = "FATAL",
"levelMax" = "INFO",
// automatically log exceptions via onException interception event
"enableExceptionLogging" = true,
// Data sanitization, scrub fields and headers, replaced with * at runtime
"scrubFields" = [],
"scrubHeaders" = []
}
};
For all have sinned, and come short of the glory of God (Romans 3:23)
But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us. (Romans 5:8)
That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved. (Romans 10:9)
Copyright 2019 (and on) - Michael Born
$
box install bugsnag