# Yii2 Bugsnag integration
To use, configure as such:

    $config = [
        'components' => [
            'errorHandler' => [
                'class' => 'jcherniak\yii2bugsnag\BugsnagErrorHandler' // For your web configuration
                'class' => 'jcherniak\yii2bugsnag\BugsnagConsoleErrorHandler' // For your console configuration
            ],
            'bugsnag' => [
                'class' => 'jcherniak\yii2bugsnag\BugsnagComponent', // Or your override of such
                'bugsnag_api_key' => 'YOUR API KEY',
                'notifyReleaseStages' => ['staging', 'production'],
            ],
            'log' => [
                'traceLevel' => 8,
                'targets' => [
                    [
                        'class' => 'jcherniak\yii2bugsnag\BugsnagLogTarget',
                        'levels' => ['error', 'warning', 'info', 'trace'],
                        'logVars' => [],
                    ]
                ],
            ],
        ],
    ];


# Yii2 Bugsnag integration
To use, configure as such:

    $config = [
        'components' => [
            'errorHandler' => [
                'class' => 'jcherniak\yii2bugsnag\BugsnagWebErrorHandler' // For your web configuration
                'class' => 'jcherniak\yii2bugsnag\BugsnagConsoleErrorHandler' // For your console configuration
            ],
            'bugsnag' => [
                'class' => 'jcherniak\yii2bugsnag\BugsnagComponent', // Or your override of such
                'bugsnag_api_key' => 'YOUR API KEY',
                'notifyReleaseStages' => ['staging', 'production'],
            ],
            'log' => [
                'traceLevel' => 8,
                'targets' => [
                    [
                        'class' => 'jcherniak\yii2bugsnag\BugsnagLogTarget',
                        'levels' => ['error', 'warning', 'info', 'trace'],
                        'logVars' => [],
                    ]
                ],
            ],
        ],
    ];


Fix wrong example of how you use web error handler
Fix wrong example of how you use web error handler
