Flare Error tracking made for Laravel
Features Pricing Docs Blog Log in Start free trial Free trial
  • Docs
  • Videos

Documentation

  • General

    • Welcome
    • Projects
    • Errors
    • Error occurrences
    • Using the API
    • Sharing error occurrences
    • Spike protection
    • GitHub integration
  • Ignition for Laravel

    • Installation
    • Configuration
    • Security
    • Controlling collected data
    • Sending logs to Flare
    • Linking to errors
    • Identifying users
    • Adding custom context
    • Adding glows
    • Writing custom middleware
  • Flare for generic PHP projects

    • Installation
    • Controlling collected data
    • Identifying users
    • Linking to errors
    • Adding custom context
    • Adding glows
    • Writing custom middleware
  • Javascript error tracking

    • Installation
    • Framework integrations
    • Resolving Bundled Code
    • Reporting errors
    • Client hooks
    • Adding custom context
    • Adding glows
    • Solution Providers
  • Solutions

    • Introduction
    • Adding custom solutions
    • Making solutions runnable
    • Using solution providers
    • Writing good solutions
  • Notifications

    • Configuring notifications
    • Mail
    • Slack
    • Telegram
    • SMS
    • Webhooks
    • Discord
    • Microsoft Teams
  • Team management

    • Using multiple teams
    • Subscribing to a plan
    • Receiving invoices
    • Managing team members
    • Inviting guests to projects

Sending logs to Flare

In addition to handling your application exceptions, you might sometimes also want to send specific error messages to Flare.

These error messages are not necessarily exceptions, but simply log statements that exceed a specified threshold - think of critical logs that your application sends and you want to get notified about them.

Activating/Deactivating log reporting

You can enable or disable log reporting in your flare.php config file. The send_logs_as_events key determines whether or not Flare should automatically receive your error logs.

Controlling the minimum log level to report

By default we only collect logs that are at least of the type "Error" or above (Emergency, Critical). That means that we do not receive simple info logs that you perform in your application.

You can modify the minimum report log level by specifying it by adding or modifying the the level key in your logging channel configuration.

For example, this would restrict logs to only be sent to Flare when they are at the "critical" level.

// in your config/logging.php
'flare' => [
    'driver' => 'flare',
    'level' => 'critical',
],
Previous topic Next topic

On this page

  • Activating/Deactivating log reporting
  • Controlling the minimum log level to report

About Flare

  • Home
  • Features
  • Pricing
  • Support

Resources

  • Blog
  • Changelog
  • Docs
  • Ignition

App

  • Log in
  • Start free trial
SPATIE
  • Service status
  • Terms of use
  • Privacy & cookie policy