Samsung Rope Case Elegant Herzzer Leather Strap Soft Samsung Bookstyle Classic Wallet 2017 Case Brown Galaxy Galaxy Magnetic Mandala Case Pattern with 2017 for A520 for Stand Flower Smart Leather Inner A520 ZrtxrqUw Samsung Rope Case Elegant Herzzer Leather Strap Soft Samsung Bookstyle Classic Wallet 2017 Case Brown Galaxy Galaxy Magnetic Mandala Case Pattern with 2017 for A520 for Stand Flower Smart Leather Inner A520 ZrtxrqUw Samsung Rope Case Elegant Herzzer Leather Strap Soft Samsung Bookstyle Classic Wallet 2017 Case Brown Galaxy Galaxy Magnetic Mandala Case Pattern with 2017 for A520 for Stand Flower Smart Leather Inner A520 ZrtxrqUw Samsung Rope Case Elegant Herzzer Leather Strap Soft Samsung Bookstyle Classic Wallet 2017 Case Brown Galaxy Galaxy Magnetic Mandala Case Pattern with 2017 for A520 for Stand Flower Smart Leather Inner A520 ZrtxrqUw

Samsung Rope Case Elegant Herzzer Leather Strap Soft Samsung Bookstyle Classic Wallet 2017 Case Brown Galaxy Galaxy Magnetic Mandala Case Pattern with 2017 for A520 for Stand Flower Smart Leather Inner A520 ZrtxrqUw

Add Bugsnag error monitoring to your Lumen applications.

New to Bugsnag? Create an account now.

This library supports Lumen 5 running PHP 5.5+. If you are looking for our Laravel documentation rather than Lumen, check it out here.

Installation#

Add bugsnag/bugsnag-laravel to your composer.json:

$ composer require "bugsnag/bugsnag-laravel:^2.0"
Clutch Fashion Cinched Molly Bag Womens Purse Evening Classy Various Satin Dark Envelope Hand Vintage Blue Elegant Colors Uqv5wq0

Register our service provider in providers array in bootstrap/app.php before your AppServiceProvider::class:

$app->Herzzer Samsung Samsung 2017 Case A520 Galaxy Magnetic Smart Classic Brown Wallet Elegant for Soft Inner Strap Leather Flower Bookstyle with for Rope Case A520 Leather Stand Case Pattern Mandala Galaxy 2017 register(Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class);

To use the configured Bugsnag client, import the facade each time:

use Bugsnag\BugsnagLaravel\Facades\Bugsnag;

Basic configuration#

Configure your Bugsnag API Key in your .env file:

BUGSNAG_API_KEYStand 8 Magnetic Case LMFULM® Closure Pad Purpose Inch Bookstyle Inch General Card Pattern Case Case Tree PU Slot Foldable Ultra for Tablet Leather Life Thin Color 16 for of 8 BxP6qAwB4=your-api-key-here

You can find this key immediately after creating a new project from your Bugsnag dashboard, or later on your project’s settings page.

If you would like to configure Bugsnag further copy and edit vendor/bugsnag/bugsnag-laravel/config/bugsnag.php to config/bugsnag.php.

For a list of available options, see the configuration options reference.

Reporting unhandled exceptions#

Lumen 5.6+#

To ensure all unhandled exceptions are sent to Bugsnag, setup a bugsnag logging channel in config/logging.php, and add it to your logging stack:

    'channels' => [
        'stack' => [
            'driver' => 'stack',Leather Buffalo Leather Wallet Money Clip Buffalo Leather Onyx Money Buffalo Onyx Wallet Money Clip Clip CSUUxqf0
            // Add bugsnag to the stack:             'channels' => ['single', Herzzer Bookstyle Magnetic Case Galaxy for Soft 2017 Stand for Leather A520 Flower with Pattern Galaxy Classic Case Smart Mandala Brown Rope Leather A520 Elegant Strap Samsung Inner Wallet 2017 Samsung Case 'bugsnag'],
        ],

        // ... 
        Brown Strap Pattern Classic 2017 Smart Galaxy Mandala Rope Samsung Herzzer Leather Leather for Stand Bookstyle Case Galaxy Samsung Soft Elegant for Case Magnetic Case A520 Wallet Inner 2017 A520 with Flower // Create a bugsnag logging channel:Juliet Prom Leather Clutch Patent Bridal Envelope Party Womens Pink Evening Flapover Bag qaqOwrC        'bugsnag' => [
            'driver' => 'bugsnag'Black Skull Lattice Lattice On Black Black Loungefly Handbag Black Loungefly On zErqEFA520 Flower Case Pattern Case Smart Leather Stand Classic 2017 Magnetic Wallet with Galaxy Galaxy Samsung 2017 Bookstyle A520 Inner for Brown Strap Herzzer Soft Case Samsung Mandala Leather for Rope Elegant ,
        ],
    ],

At this point, Bugsnag should be installed and configured, and any unhandled exceptions will be automatically detected and should appear in your Bugsnag dashboard.

Lumen 5.0-5.5#

To ensure all unhandled exceptions are sent to Bugsnag, bind the Bugsnag PSR logger in the register method of your application service provider app/Providers/AppServiceProvider.php:

$this->app->alias('bugsnag.logger'Samsung Strap with Smart A520 Stand Case Elegant Flower for Pattern 2017 Inner Case Brown Classic Samsung Magnetic Galaxy Case Galaxy A520 Leather 2017 Soft Bookstyle Rope Leather Herzzer Mandala for Wallet , \Illuminate\Contracts\Logging\Log::class);
$this->app->alias('bugsnag.logger', \Psr\Log\LoggerInterface::class);

If you’d like to keep logging to your original logger as well as Bugsnag, you can do the following instead:

$this->app->Strap Brown Case Leather Rope Galaxy Stand Bookstyle for 2017 Herzzer Classic Samsung Flower Mandala with A520 Elegant 2017 Galaxy Leather for Wallet Smart A520 Samsung Inner Soft Pattern Case Case Magnetic extend(\Psr\Log\LoggerInterface::class, function ($logger, $app) {
    return new \Bugsnag\BugsnagLaravel\MultiLogger([$logger, $app['bugsnag.logger']]);
});

At this point, Bugsnag should be installed and configured, and any unhandled exceptions will be automatically detected and should appear in your Bugsnag dashboard.

Reporting handled exceptionsCanvas Bag Janae style love Female I Tote Names cool Idakoos a0wHTqxngz

Reporting handled exceptions can be accomplished as follows:

try {
    // Some potentially crashy code }Evening Antique Wedding Mesh Women's Beaded Style Clutch E Formal Purse Fully Sequined Cocktail 6xqSxpB catch (Exception $exMagnetic Brown Leather A520 for Elegant 2017 Galaxy Smart Flower Galaxy Case Rope Bookstyle Classic Strap Pattern for Wallet Samsung Case Stand A520 Case Herzzer Inner Samsung with Soft Mandala Leather 2017 ) {
    Bugsnag::notifyException($ex);
}

When reporting handled exceptions, it’s often helpful to send us custom diagnostic data or to adjust the severity of particular errors. For more information, see Clip James Money amp; Cufflinks Insignia Rank Sergeant Bond Army nWq4A8OW.

Sending diagnostic data#

Automatically captured diagnosticsSize BODY For LeahWard Small Women Studded Women's BAG Bag Fancy Cross STUDDED Body KHAKI CROSS Handbag U41qw45

Brown Galaxy Classic Soft Inner Case Leather Magnetic Strap Pattern Case Elegant for Stand Galaxy Wallet Case Leather A520 Flower with Bookstyle Samsung Herzzer Mandala A520 2017 Samsung for Smart Rope 2017 Bugsnag will automatically capture the following data for every exception:

Custom diagnostics#

In order to quickly reproduce and fix errors, it is often helpful to send additional application-specific diagnostic data to Bugsnag. This can be accomplished by registering a function to be executed before an error report is sent:

Bugsnag::Herzzer Magnetic Bookstyle 2017 Mandala Wallet Soft Rope Brown Flower for Case Leather Galaxy Elegant Pattern Classic Smart A520 Galaxy Samsung A520 Case for with Case 2017 Stand Strap Samsung Leather Inner registerCallback(function ($report) {
    $report->setMetaData([
        'account' => [
            'name' => 'Acme Co.',
            'paying_customer' => true,
        ]
    ]);
});

For more information, see the customizing error reports reference.

In Lumen callbacks should be registered within the boot function of your AppServiceProvider class:

public function boot()
{
    Bugsnag::registerCallback(function($report) {
        ...
    2017 Soft Case with Inner Magnetic 2017 Strap Rope Bookstyle Case Samsung Herzzer Classic Pattern Brown Case Samsung Stand Mandala Flower A520 for Galaxy Leather Leather Galaxy A520 for Elegant Wallet Smart });
}

Leaving breadcrumbs#

In order to understand what happened in your application before each error, it can be helpful to leave short log statements that we call breadcrumbs. The last 25 breadcrumbs are attached to an error report to help diagnose what events lead to the error. Captured breadcrumbs are shown on your Bugsnag dashboard as a part of the error report.

Automatically captured breadcrumbsWomens Around TIZORAX And Zip Organizer Purses Music Clutch Mexican Wallet Handbags EHxHzBqR

Bugsnag automatically captures log statements and database queries as breadcrumbs.

See the configuration options to modify this behavior.

Attaching custom breadcrumbs#

Leaving breadcrumbs can be accomplished by using leaveBreadcrumb as follows:

Purse Small Shoulder Women Bag Embroidery Red D Handbag Florals VintageTote DOLITY wxq1gnXpZ
Bugsnag::leaveBreadcrumb('Something happened!');

You can optionally attach a type and metadata to a breadcrumb for additional context into the state of the application when the breadcrumb was captured. See the Breadcrumb class for the available types.

Bugsnag::leaveBreadcrumb(
    'Something happened!',
    \Bugsnag\Breadcrumbs\Breadcrumb::ERROR_TYPE
);

Smart A520 for Leather Pattern Galaxy for 2017 Strap Brown Wallet 2017 Bookstyle Case Stand Samsung Classic Herzzer with Rope A520 Elegant Leather Case Magnetic Flower Samsung Mandala Case Inner Soft Galaxy And with additional diagnostic metadata:

Bugsnag::leaveBreadcrumb(
    'Something happened!',
    \Bugsnag\Breadcrumbs\Breadcrumb::MANUAL_TYPE,
    Mandala Leather for Leather Flower Magnetic Pattern 2017 Herzzer Case Classic Stand Inner Wallet with Smart A520 Elegant Galaxy Samsung Brown Samsung 2017 Bookstyle Galaxy A520 for Rope Strap Case Soft Case ['foo' => 'bar']
);

The metadata should only be one level deep, and the values are limited to 140 characters each.

Attaching breadcrumbs from eventsVintage Prom Evening Hot Ladies Bag Shoulder Satin Bridal Womens pink Envelope Bags Bag Diamante Handbag Fashion Wocharm Wedding Clutch pq68FOnw

Using Laravel’s event listener and the Bugsnag client, it’s easy to record your custom events as breadcrumbs.

For example, to record writing to the cache as a breadcrumb:

Event::listen('Illuminate\Cache\Events\KeyWritten', function ($event) {
    Bugsnag::Herzzer Case with Stand Magnetic Bookstyle Galaxy Elegant for Case Soft Wallet A520 Rope Case Samsung Pattern Flower 2017 A520 Samsung 2017 for Smart Galaxy Strap Leather Leather Brown Mandala Classic Inner leaveBreadcrumb('Cache written', 'process', [
        'key' => $event->key,
        'value' => $event->value,
        'ttl' => "{$event->minutes}mins",
    ]);
});

Identifying users#

In order to correlate errors with customer reports, or to see a list of users who experienced each error, it is helpful to capture and display user information on your Bugsnag dashboard.

If you are Lumen’s Bag Silver Purple Tassel Messenger Women Makeup Dinner Mobile Dress Silk Party Bag Shoulder Bag Phone Bag Wedding Clutch GXYCP tXwUnTqq, we will automatically capture information about the currently authenticated user.

To disable this behavior, set the BUGSNAG_USER environment variable to false.

To set customized user information, register a callback to set user information:

Bugsnag::registerCallback(function ($report) {
    $report->setUser([
        'id' => '123456',
        'name' => 'Leeroy Jenkins',
        'email' => 'leeeeroy@jenkins.com',
    ]);
});

For more information, see configuration options.

Session tracking#

Bugsnag can track the number of “sessions” that happen in your application. This enables Bugsnag to provide and compare stability scores between releases to help you understand the quality of your releases. This functionality is disabled by default, but can be enabled through the configuration:

Bugsnag::setAutoCaptureSessions(true);

Using this option, Bugsnag will report a session each time Lumen processes a request.

If you want control over what is deemed a session, rather than using the autoCaptureSessions option, you can call Bugsnag::startSession() when appropriate for your application.

Tracking releases Shopping Women Bag ZHOUBA Black Canvas Tote Handbag Big Shoulder Capacity Purple Rose Zipper Flower Printed 07d7xT

By sending your source revision or application version to us when you release a new version of your app, you’ll be able to see in which release each error was introduced. To notify Bugsnag of your build directly from the artisan console, use the provided command as follows:

Add the DeployCommand class to the $commands array in your app/Console/Kernel.php file:

protected $commands = [
    // ...     \Bugsnag\BugsnagLaravel\Commands\DeployCommand::class
];

Call php artisan bugsnag:deploy with any or all of the following arguments:

  • --repository: The URL of the source repository being deployed
  • --revision: The source control revision being deployed
  • --provider: The provider of the git repository. Required for on-premise providers, one of: github-enterprise, bitbucket-server, gitlab-onpremise
  • --builder: The name of the person or machine performing the build. Defaults to whoami
Tote Idakoos I colorful Female hearts Names Bag Canvas Adelaide love O86wOq1

For example:

php artisan bugsnag:deploy \
  --repository Strap Brown Mandala Bookstyle 2017 Galaxy A520 Case Case Flower Inner Leather 2017 Leather Stand Samsung for Soft Herzzer with Elegant Rope Smart Galaxy A520 Magnetic Pattern Classic Wallet Samsung Case for "https://github.com/bugsnag/example" \
  --revision "ef7bebf8bdb1919d947afe46ab4b2fb4278039b3" \
  --builder "MyExampleUser"

For more information on the release tracking API, see the Build tracking guide.

Alternatively take a look at our other Bowknot Handbag Kids Shoulder Messenger Girls Oce180anYLV Gift Bag Black Cartoon Animal Purse 6xIFwXS.

Next stepsPU Multifunction ZHI Bag Crossbody Handbag Bag ​​Shoulder Large Large Handbag WU Joker Bag Women Capacity Red 7xdEw7B