Flare by Spatie
  • Features
  • Pricing
  • Docs
  • Blog
  • LOG IN
  • START TRACKING
  • Home
  • Features
  • Pricing
  • Docs
  • Blog
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript
  • General
  • Introduction
  • Installation
  • Censoring collected data
  • Ignoring collected data
  • Laravel Octane
  • Errors
  • Adding custom context
  • Customising error grouping
  • Handling errors
  • Linking to errors
  • Reporting errors
  • Sending logs to Flare
  • Performance
  • Introduction
  • Sampling
  • Limits
  • Modify spans and span events
  • Data Collection
  • Application info
  • Cache events
  • Console commands
  • Customise error report
  • Database transactions
  • Dumps
  • Errors when tracing
  • Exception context
  • External http requests
  • Filesystem operations
  • Git information
  • Glows
  • Identifying users
  • Jobs and queues
  • Laravel context
  • Livewire
  • Logs
  • Queries
  • Redis commands
  • Requests
  • Server info
  • Solutions
  • Spans
  • Stacktrace arguments
  • Views
  • Older Packages
  • Laravel Flare V1
  • Ignition

Reporting errors

PHP defines two types of "things that might go wrong within your application":

  • Exceptions
  • Errors

While the first is the most common, the second is also a valid way of handling errors in PHP. A fatal error is an example of a PHP error that cannot be caught by a try-catch block.

The Flare client can handle exceptions and errors; it wraps errors within ErrorException instances and sends them to Flare.

It is possible to set the minimum error level that will be sent to Flare. By default, all errors are sent to Flare. You can change this by calling report_error_levels in the flare.php config file:

'report_error_levels' => E_ALL & ~E_NOTICE, // Will send all errors except E_NOTICE errors

Setting the error_levels config value to null will send all errors to Flare:

'report_error_levels' => null,
Linking to errors Sending logs to Flare

Monitor your web apps and sites from errors to slowdowns with Flare, the easiest application monitoring platform for Laravel, PHP & Javascript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Blog
  • Changelog
  • Documentation
  • Affiliate program
  • Service status
  • Terms of use
  • DPA
  • Privacy & Cookie Policy
Flare