PHPackages                             sodalitedana/laravel-bugsnag-download-logs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sodalitedana/laravel-bugsnag-download-logs

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sodalitedana/laravel-bugsnag-download-logs
==========================================

This is my package laravel-bugsnag-download-logs

v1.0.7(7mo ago)026[4 PRs](https://github.com/Sodalitedana/laravel-bugsnag-download-logs/pulls)MITPHPPHP ^8.3CI passing

Since Sep 24Pushed 1mo agoCompare

[ Source](https://github.com/Sodalitedana/laravel-bugsnag-download-logs)[ Packagist](https://packagist.org/packages/sodalitedana/laravel-bugsnag-download-logs)[ Docs](https://github.com/sodalitedana/laravel-bugsnag-download-logs)[ GitHub Sponsors](https://github.com/Sodalitedana)[ RSS](/packages/sodalitedana-laravel-bugsnag-download-logs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (14)Used By (0)

Laravel Bugsnag Download Logs
=============================

[](#laravel-bugsnag-download-logs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/54661c12cc25fd96180787dee055094a20a8b3f8c202ff3cc3a9f9009c1bd1c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f64616c69746564616e612f6c61726176656c2d627567736e61672d646f776e6c6f61642d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sodalitedana/laravel-bugsnag-download-logs)[![Total Downloads](https://camo.githubusercontent.com/e3584e9916e56675a84748f761e43a423fbef0554c133afd59a19e368851a476/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f64616c69746564616e612f6c61726176656c2d627567736e61672d646f776e6c6f61642d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sodalitedana/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
--------

[](#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 `--status` option (open, resolved, etc.)
- 📅 **Configurable time period** via `--days` option (default: last 7 days)
- 📊 **Tabular preview** of downloaded errors

Requirements
------------

[](#requirements)

- PHP ^8.3
- Laravel ^11.0|^12.0
- Bugsnag API Token (Personal Auth Token)

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require sodalitedana/laravel-bugsnag-download-logs
```

Publish the configuration file:

```
php artisan vendor:publish --tag=laravel-bugsnag-download-logs-config
```

Configuration
-------------

[](#configuration)

### 1. Bugsnag API Token

[](#1-bugsnag-api-token)

Add your Bugsnag Personal Auth Token to your `.env` file:

```
BUGSNAG_API_TOKEN=your_personal_auth_token_here
```

**How to get the token:**

1. Go to [Bugsnag Settings → My Account](https://app.bugsnag.com/settings/personal-auth-tokens)
2. Click "Generate new token"
3. Copy the generated token

### 2. Configuration File

[](#2-configuration-file)

The configuration file is published to `config/laravel-bugsnag-download-logs.php`:

```
