LaravelPackages.net
Acme Inc.
Toggle sidebar
debugbird/laravel

Debugbird Laravel

4
0
1.0.2
About debugbird/laravel

debugbird/laravel is a Laravel package for debugbird laravel. It currently has 0 GitHub stars and 4 downloads on Packagist (latest version 1.0.2). Install it with composer require debugbird/laravel. Discover more Laravel packages by debugbird or browse all Laravel packages to compare alternatives.

Last updated

DebugBird Laravel SDK

DebugBird Laravel SDK provides seamless log and crash collection for your Laravel applications, sending data to your DebugBird dashboard.

Installation

You can install the package via Composer:

composer require debugbird/laravel

Then, publish the configuration file:

php artisan vendor:publish --tag=debugbird-config

Configuration

After publishing, configure your .env file:

DEBUGBIRD_PROJECT_ID=your_project_id DEBUGBIRD_API_KEY=your_api_key

You can disable log or crash collection in your .env file:

DEBUGBIRD_DISABLE_LOGS=true DEBUGBIRD_DISABLE_ERRORS=true

Usage

Automatic Logging

Once installed, DebugBird will automatically capture logs and exceptions based on the log level defined in your .env file.

Manually Logging Messages

You can manually log messages with different types:

use DebugBird\DebugBird;

DebugBird::log('info', 'This is an informational message');
DebugBird::log('warning', 'This is a warning message');
DebugBird::log('error', 'This is an error message');

Custom Exception Handling

If you want to manually capture exceptions, you can do:

try {
    throw new Exception('Something went wrong!');
} catch (Exception $e) {
    DebugBird::captureException($e);
}

Contributing

Feel free to submit issues and pull requests to improve this SDK.

License

This package is proprietary. Contact [email protected] for licensing inquiries.

Star History Chart