PHPackages                             laralogs/laralogs - 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. laralogs/laralogs

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

laralogs/laralogs
=================

A beautiful Laravel package for viewing and managing application logs with a modern web interface

1.0.6(7mo ago)05MITBladePHP ^8.0

Since Oct 7Pushed 7mo agoCompare

[ Source](https://github.com/bonnidevelop/laralogs)[ Packagist](https://packagist.org/packages/laralogs/laralogs)[ Docs](https://github.com/bonnidevelop/laralogs)[ RSS](/packages/laralogs-laralogs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

LaraLogs 📊
==========

[](#laralogs-)

A beautiful Laravel package for viewing and managing application logs with a modern web interface. LaraLogs provides a clean, responsive dashboard to view, search, filter, and manage your Laravel application logs.

✨ Features
----------

[](#-features)

- 🎨 **Beautiful Interface** - Modern, responsive design with no external dependencies
- 🔍 **Advanced Search** - Search through log messages, context, and timestamps
- 📊 **Log Statistics** - View total entries, file size, and last modified time
- 🏷️ **Log Level Filtering** - Filter by emergency, alert, critical, error, warning, notice, info, debug
- 📥 **Download Logs** - Download log files for offline analysis
- 🗑️ **Clear Logs** - Clear log files with confirmation
- 🔒 **Security** - Production environment restrictions with email-based access control
- 📱 **Responsive** - Works perfectly on desktop, tablet, and mobile devices
- ⚡ **Fast** - Optimized for performance with configurable entry limits

🚀 Installation
--------------

[](#-installation)

### Via Composer

[](#via-composer)

```
composer require laralogs/laralogs
```

### Manual Installation

[](#manual-installation)

1. Clone or download this repository
2. Copy the `packages/laralogs` directory to your Laravel project
3. Add the service provider to your `config/app.php`:

```
'providers' => [
    // ... other providers
    LaraLogs\LaraLogsServiceProvider::class,
],
```

📋 Configuration
---------------

[](#-configuration)

### Publish Configuration

[](#publish-configuration)

```
php artisan vendor:publish --provider="LaraLogs\LaraLogsServiceProvider" --tag="laralogs-config"
```

### Environment Variables

[](#environment-variables)

Add these to your `.env` file:

```
# Enable LaraLogs in production (default: false)
LARALOGS_ENABLED_IN_PRODUCTION=false

# Custom route prefix (default: laralogs)
LARALOGS_ROUTE_PREFIX=laralogs

# Maximum log entries to display (default: 1000)
LARALOGS_MAX_ENTRIES=1000
```

### Configuration File

[](#configuration-file)

The published config file (`config/laralogs.php`) contains:

```
return [
    // Enable in production
    'enabled_in_production' => env('LARALOGS_ENABLED_IN_PRODUCTION', false),

    // Allowed emails for production access
    'allowed_emails' => [
        'admin@example.com',
        'developer@example.com',
    ],

    // Route configuration
    'route_prefix' => env('LARALOGS_ROUTE_PREFIX', 'laralogs'),
    'middleware' => ['web', 'laralogs.auth'],

    // Log files to display
    'log_files' => [
        'laravel' => [
            'path' => storage_path('logs/laravel.log'),
            'name' => 'Laravel Logs',
        ],
    ],

    // Display settings
    'max_entries' => env('LARALOGS_MAX_ENTRIES', 1000),
];
```

🔧 Usage
-------

[](#-usage)

### Accessing LaraLogs

[](#accessing-laralogs)

Once installed, you can access LaraLogs at:

```
http://your-app.com/laralogs

```

### Security Features

[](#security-features)

#### Development Environment

[](#development-environment)

- Any authenticated user can access LaraLogs
- No additional restrictions

#### Production Environment

[](#production-environment)

- LaraLogs is disabled by default
- To enable: Set `LARALOGS_ENABLED_IN_PRODUCTION=true` in `.env`
- Only users with emails listed in `allowed_emails` config can access
- Add authorized emails to `config/laralogs.php`:

```
'allowed_emails' => [
    'admin@yourcompany.com',
    'developer@yourcompany.com',
    'support@yourcompany.com',
],
```

### Customizing Log Files

[](#customizing-log-files)

Add more log files to monitor in `config/laralogs.php`:

```
'log_files' => [
    'laravel' => [
        'path' => storage_path('logs/laravel.log'),
        'name' => 'Laravel Logs',
    ],
    'custom' => [
        'path' => storage_path('logs/custom.log'),
        'name' => 'Custom Application Logs',
    ],
    'api' => [
        'path' => storage_path('logs/api.log'),
        'name' => 'API Logs',
    ],
],
```

### Customizing Routes

[](#customizing-routes)

Change the route prefix in your `.env`:

```
LARALOGS_ROUTE_PREFIX=admin/logs
```

This will make LaraLogs accessible at `/admin/logs`.

🎨 Customization
---------------

[](#-customization)

### Publishing Views

[](#publishing-views)

To customize the interface:

```
php artisan vendor:publish --provider="LaraLogs\LaraLogsServiceProvider" --tag="laralogs-views"
```

This will publish the views to `resources/views/vendor/laralogs/`.

### Custom Styling

[](#custom-styling)

The package uses inline CSS for a self-contained experience. To customize:

1. Publish the views
2. Modify the CSS in the published view files
3. Or add your own CSS files and remove the inline styles

🔒 Security Considerations
-------------------------

[](#-security-considerations)

- **Production Access**: LaraLogs is disabled in production by default
- **Email Restrictions**: Only specified emails can access in production
- **Authentication Required**: Users must be logged in to access LaraLogs
- **Log File Access**: Only configured log files are accessible
- **CSRF Protection**: All forms include CSRF tokens

📱 Features Overview
-------------------

[](#-features-overview)

### Dashboard

[](#dashboard)

- Real-time log statistics
- File size and modification tracking
- Entry count display

### Search &amp; Filter

[](#search--filter)

- Full-text search across messages and context
- Log level filtering (Emergency, Alert, Critical, Error, Warning, Notice, Info, Debug)
- Timestamp-based filtering

### Log Management

[](#log-management)

- Download log files
- Clear log files with confirmation
- Pagination for large log files

### Responsive Design

[](#responsive-design)

- Mobile-first approach
- Touch-friendly interface
- Adaptive layouts for all screen sizes

🛠️ Development
--------------

[](#️-development)

### Running Tests

[](#running-tests)

```
composer test
```

### Building for Production

[](#building-for-production)

```
composer install --no-dev --optimize-autoloader
```

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

📞 Support
---------

[](#-support)

- **Issues**: [GitHub Issues](https://github.com/bonnidevelop/laralogs/issues)
- **Documentation**: [GitHub Repository](https://github.com/bonnidevelop/laralogs)

🙏 Acknowledgments
-----------------

[](#-acknowledgments)

- Laravel Framework
- All contributors and users

---

Made with ❤️ for the Laravel community

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

2

Last Release

211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c37649e6a3e177d437e56af728ebb1ccf7297e7af0925737a1da62046d2cf0bf?d=identicon)[bonnidevelop](/maintainers/bonnidevelop)

---

Top Contributors

[![Bankhart](https://avatars.githubusercontent.com/u/109671897?v=4)](https://github.com/Bankhart "Bankhart (10 commits)")

---

Tags

laravelloggingmonitoringdebuglogsweb interface

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laralogs-laralogs/health.svg)

```
[![Health](https://phpackages.com/badges/laralogs-laralogs/health.svg)](https://phpackages.com/packages/laralogs-laralogs)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

90197.2k1](/packages/jenssegers-raven)[kssadi/log-tracker

A powerful, intuitive, and efficient log viewer for Laravel applications.

264.8k](/packages/kssadi-log-tracker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
