PHPackages                             imamhsn195/laravel-system-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. imamhsn195/laravel-system-logs

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

imamhsn195/laravel-system-logs
==============================

A comprehensive Laravel package for viewing and managing system logs with an intuitive web interface

1.1.0(3mo ago)051MITPHPPHP ^8.1

Since Jan 22Pushed 3mo agoCompare

[ Source](https://github.com/imamhsn195/laravel-system-logs)[ Packagist](https://packagist.org/packages/imamhsn195/laravel-system-logs)[ RSS](/packages/imamhsn195-laravel-system-logs/feed)WikiDiscussions main Synced 1mo ago

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

Laravel System Logs
===================

[](#laravel-system-logs)

[![Latest Version](https://camo.githubusercontent.com/da47e70e3182beb10dc9541ced605d8b2823b8d17edc13123a27f93c66a12824/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d616d68736e3139352f6c61726176656c2d73797374656d2d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imamhsn195/laravel-system-logs)[![Total Downloads](https://camo.githubusercontent.com/8ba32959e74378f3fbfde1c962730404258d59fca701759123759b5ec7df61bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d616d68736e3139352f6c61726176656c2d73797374656d2d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imamhsn195/laravel-system-logs)[![License](https://camo.githubusercontent.com/99731afd29a8f7ad178eb4aeb5c9d2de969f9ddf6a7927f100417c0f8a12ea4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696d616d68736e3139352f6c61726176656c2d73797374656d2d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imamhsn195/laravel-system-logs)

A comprehensive Laravel package for viewing and managing system logs with an intuitive web interface.

Features
--------

[](#features)

- 📋 View log entries from multiple files
- 🔍 Advanced filtering and search (channel, level, environment, date, text search)
- 🗑️ Delete single or bulk entries
- 📁 Recursive directory scanning with depth limits
- 🎨 Flexible layout support (works with any Laravel layout)
- 🔒 Security features (path validation, file size limits)
- 📱 Responsive design
- 🌐 Multi-language support
- ⚡ Real-time filtering via AJAX

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

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x, 11.x, or 12.x

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

[](#installation)

### Via Packagist (Recommended)

[](#via-packagist-recommended)

```
composer require imamhsn195/laravel-system-logs
```

### Via Composer (from GitHub)

[](#via-composer-from-github)

If you need to install from the GitHub repository directly:

Add the repository to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/imamhsn195/laravel-system-logs"
        }
    ],
    "require": {
        "imamhsn195/laravel-system-logs": "dev-main"
    }
}
```

Then run:

```
composer require imamhsn195/laravel-system-logs:dev-main
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=system-logs-config
```

This will create `config/system-logs.php` where you can customize:

- Log directory path
- Route prefix and middleware
- Permission names
- UI layout
- Filter defaults
- Directory scanning options
- Security settings

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

After installation, navigate to `/admin/system-logs` (or your configured prefix).

### Custom Layout

[](#custom-layout)

The package supports any Laravel layout. Configure it in `config/system-logs.php`:

```
'ui' => [
    'layout' => 'layouts.app', // Your layout name
    'title' => 'System Logs',
],
```

### Permissions

[](#permissions)

The package uses Laravel's permission system. Configure permission names:

```
'permissions' => [
    'view' => 'system-log.view',
    'delete' => 'system-log.delete',
],
```

Make sure to add these permissions to your permission system.

### Publishing Assets

[](#publishing-assets)

Publish CSS and JavaScript files:

```
php artisan vendor:publish --tag=system-logs-assets
```

### Publishing Views (Optional)

[](#publishing-views-optional)

If you want to customize the views:

```
php artisan vendor:publish --tag=system-logs-views
```

### Publishing Translations (Optional)

[](#publishing-translations-optional)

If you want to customize translations:

```
php artisan vendor:publish --tag=system-logs-lang
```

Features
--------

[](#features-1)

### Filtering

[](#filtering)

- **Channel**: Filter by log channel (single, daily, stack, etc.)
- **File**: Filter by specific log file
- **Level**: Filter by log level (debug, info, warning, error, etc.)
- **Environment**: Filter by environment (local, production, etc.)
- **Date**: Filter entries by specific date
- **Search**: Full-text search across messages and context

### Deletion

[](#deletion)

- **Single Entry**: Delete individual log entries
- **Bulk Delete**: Delete multiple selected entries
- **Bulk Delete by Filters**: Delete all entries matching current filters (with confirmation)

### Recursive Scanning

[](#recursive-scanning)

The package can scan subdirectories recursively:

```
'scanning' => [
    'recursive' => true,
    'max_depth' => 10,
    'exclude_directories' => ['.git', 'node_modules', '.cache'],
],
```

Configuration Options
---------------------

[](#configuration-options)

### Log Directory

[](#log-directory)

```
'log_directory' => storage_path('logs'),
```

### Route Configuration

[](#route-configuration)

```
'route' => [
    'prefix' => 'admin/system-logs',
    'middleware' => ['web', 'auth'],
    'name_prefix' => 'system-logs.',
],
```

### UI Configuration

[](#ui-configuration)

```
'ui' => [
    'layout' => 'layouts.app',
    'layout_type' => 'extend',
    'section_name' => 'content',
    'title' => 'System Logs',
],
```

### Filter Defaults

[](#filter-defaults)

```
'filters' => [
    'default_per_page' => 50,
    'min_per_page' => 10,
    'max_per_page' => 300,
    'default_max_files' => 3,
    'min_max_files' => 1,
    'max_max_files' => 20,
],
```

API Routes
----------

[](#api-routes)

- `GET /admin/system-logs` - View log entries
- `DELETE /admin/system-logs` - Delete single entry
- `DELETE /admin/system-logs/bulk` - Bulk delete selected entries
- `DELETE /admin/system-logs/bulk-by-filters` - Bulk delete by filters

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

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

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) file for details.

Author
------

[](#author)

**Imam Hasan**

- Website: [imamhasan.me](https://imamhasan.me)
- GitHub: [@imamhsn195](https://github.com/imamhsn195)
- LinkedIn: [in/imamhsn195](https://linkedin.com/in/imamhsn195)

Support
-------

[](#support)

If you find this package useful, please consider giving it a ⭐ on GitHub!

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance79

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~1 days

Total

2

Last Release

108d ago

### Community

Maintainers

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

---

Top Contributors

[![imamhsn195](https://avatars.githubusercontent.com/u/44502980?v=4)](https://github.com/imamhsn195 "imamhsn195 (18 commits)")

---

Tags

laravellogslog viewerlog managementsystem-logs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imamhsn195-laravel-system-logs/health.svg)

```
[![Health](https://phpackages.com/badges/imamhsn195-laravel-system-logs/health.svg)](https://phpackages.com/packages/imamhsn195-laravel-system-logs)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)[kssadi/log-tracker

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

264.8k](/packages/kssadi-log-tracker)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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