Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Errors are Best When Emailed... Said Nobody Ever

Errors are Best When Emailed... Said Nobody Ever

Exceptions happen. Bugless code is a myth.

I hope I don't have to convince many people that sending every exception via email is not the greatest idea since sliced bread. "Sure, it sucks... But what else can I do?" would be a natural response. I've been there. How else can you keep track of exactly what's going wrong in your application? How else will you be alerted when something goes wrong?

For many of you, email probably plays the role of courier between your application and your bug database (JIRA, Bugzilla, etc). But that's not what email was intended for, and to be honest, it's a poor tool for the job, so it does a crappy job.

The truth is that there are better options, but nobody can blame you for not knowing about them... Until now. I'm going to show you the two most popular options available for CF, how to use them to get useful analytical data back about your application's health, or lack thereof, and how you can extend the concept beyond just your CFML. And the real surprise is that it's easy.

Adam Tuttle

May 17, 2013
Tweet

More Decks by Adam Tuttle

Other Decks in Technology

Transcript

  1. • Everyone gets the email, but nobody looks at it

    • Shared team email account that interrupts everyone • Dedicated inbox manager; rotating if you’re lucky Workflow
  2. • BugLogHQ - Oscar Arevalo • Hoth - Aaron Greenlee

    • Honorable Mention: IronGate Self-hosted, CFML Powered
  3. try { var x = 42 / 0; } catch

    (any e) { thing.log( e ); } Easy to implement
  4. • Logs to text files • Built specifically & only

    for CF Exceptions • Included Report UI targets ColdBox • Only local machine • Star Wars Reference Hoth
  5. Logs to a database Supports 1 custom field, flexibility for

    non- CFML errors Report UI with pretty* graphs & filtering REST API for remote access RSS log available *as pretty as CFChart gets, anyway BugLogHQ Built-in fallback to email
  6. Hoth BugLogHQ Always emails you when a previously- unknown exception

    occurs Notification Options Customizable Alerts: discard firstMessageAlert frequencyAlert heartbeatMonitor more...
  7. Custom Bot that monitors RSS feed for new entries and

    sends me an IM when anything is added. Node.js Heroku free tier Free Redis addon for Heroku OSCAR, redis, feedparser libs <100 lines of my JavaScript Build your own goodies