Download the PHP package sodalitedana/laravel-bugsnag-download-logs without Composer
On this page you can find all versions of the php package sodalitedana/laravel-bugsnag-download-logs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sodalitedana/laravel-bugsnag-download-logs
More information about sodalitedana/laravel-bugsnag-download-logs
Files in sodalitedana/laravel-bugsnag-download-logs
Package laravel-bugsnag-download-logs
Short Description This is my package laravel-bugsnag-download-logs
License MIT
Homepage https://github.com/sodalitedana/laravel-bugsnag-download-logs
Informations about the package laravel-bugsnag-download-logs
Laravel Bugsnag Download Logs
A Laravel package that provides an Artisan command to download error logs from Bugsnag and save them to your application's laravel.log file.
Features
- 🔍 Select organization and project via interactive interface
- 📥 Download errors from Bugsnag with customizable filters
- 📝 Save to laravel.log with structured format
- 🎯 Customizable error status filter via
--statusoption (open, resolved, etc.) - 📅 Configurable time period via
--daysoption (default: last 7 days) - 📊 Tabular preview of downloaded errors
Requirements
- PHP ^8.3
- Laravel ^11.0|^12.0
- Bugsnag API Token (Personal Auth Token)
Installation
Install the package via Composer:
Publish the configuration file:
Configuration
1. Bugsnag API Token
Add your Bugsnag Personal Auth Token to your .env file:
How to get the token:
- Go to Bugsnag Settings → My Account
- Click "Generate new token"
- Copy the generated token
2. Configuration File
The configuration file is published to config/laravel-bugsnag-download-logs.php:
Usage
Basic Command
Run the command to download errors:
The command will guide you through:
- Organization selection from your available Bugsnag organizations
- Project selection by entering the project name or slug
- Automatic download of errors to
laravel.log
Available Options
Available options:
--days=N: Number of days to retrieve errors from (default: 7)--status=X: Error status to filter by (default: open)- Possible values:
open,resolved,ignored,snoozed
- Possible values:
Examples
Example Output
Error Log Format
Errors are saved to laravel.log in this format:
Troubleshooting
Token Not Configured
Solution: Verify the token is present in your .env file and the configuration file has been published.
Project Not Found
Solution: Use exactly the name or slug shown in the available projects table.
Bugsnag API Error
Solutions:
- Verify the token is valid and not expired
- Check you have permissions to access the project
- Ensure the token has read permissions for errors
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Security Vulnerabilities
If you discover a security vulnerability, please send an email to [email protected].
Credits
- Sodalitedana
- FrankFlow
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bugsnag-download-logs with dependencies
illuminate/contracts Version ^11.0||^12.0
nesbot/carbon Version ^3.0|^2.0
laravel/prompts Version ^0.3|^0.4