PHPackages                             willypelz/laravel-log-platform - 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. willypelz/laravel-log-platform

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

willypelz/laravel-log-platform
==============================

Production-grade logging and monitoring platform for Laravel applications

v2.1.0(3mo ago)149MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Mar 19Pushed 3mo agoCompare

[ Source](https://github.com/willypelz/log-platform)[ Packagist](https://packagist.org/packages/willypelz/laravel-log-platform)[ RSS](/packages/willypelz-laravel-log-platform/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (16)Versions (12)Used By (0)

Laravel Log Platform
====================

[](#laravel-log-platform)

A lightweight, **database-free** log browser for Laravel applications. Reads directly from `storage/logs`, presents your log files in a clean UI, and never touches a database connection.

Features
--------

[](#features)

- 📁 **File Browser** — lists all `.log` files in `storage/logs`, sorted by most-recent
- 🔍 **Log Viewer** — parsed, filterable log entries (level, keyword, date range) per file
- 📄 **Raw Contents** — paginated line-by-line view for any file
- 📡 **Live Tail** — real-time Server-Sent Events stream that follows a file as it grows
- ⬇️ **Download / 🗑️ Delete** — manage log files directly from the UI
- 🌗 **Dark / Light / Auto theme** — configurable via `LOG_PLATFORM_THEME`
- 🗂️ **Custom naming strategies** — daily, weekly, monthly, or custom patterns
- 🔌 **Zero DB migrations** — no tables, no queue jobs, no scheduler entries required

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

[](#installation)

```
composer require willypelz/laravel-log-platform
```

Run the install command to publish the config:

```
php artisan log:install
```

Then visit `/log-platform` in your browser.

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

[](#configuration)

Publish and edit `config/log-platform.php`:

```
php artisan vendor:publish --tag=log-platform-config
```

Key options:

```
return [
    'default_strategy' => 'daily',        // daily | weekly | monthly | custom

    'ui' => [
        'theme'       => 'auto',           // light | dark | auto
        'logs_per_page' => 100,
    ],

    'files' => [
        'allow_download' => true,
        'allow_delete'   => true,
    ],

    'retention' => [
        'enabled' => false,                // enable log:clear command
        'days'    => 30,
    ],

    'additional_folders' => [],            // extra absolute paths to scan
];
```

API Endpoints
-------------

[](#api-endpoints)

All endpoints are prefixed with `/log-platform/api` and use the middleware defined in `config/log-platform.php`.

MethodEndpointDescription`GET``/files`List all `.log` files`GET``/files/{filename}`Metadata for a single file`POST``/files/download`Download a file (`file` param)`DELETE``/files/delete`Delete a file (`file` param)`GET``/logs`Parsed + filtered log entries (`file`, `level`, `keyword`, `from`, `to`, `limit`)`GET``/contents`Raw paginated lines (`file`, `page`, `per_page`)`GET``/stream`SSE live tail (`file`, `lines`)`GET``/hosts`Configured log pathsArtisan Commands
----------------

[](#artisan-commands)

CommandDescription`log:install`Publish config`log:clear`Delete physical log files older than N days (requires `retention.enabled = true`)Custom Naming Strategy
----------------------

[](#custom-naming-strategy)

```
// config/logging.php
'channels' => [
    'custom' => [
        'driver'   => 'custom',
        'via'      => \Willypelz\LogPlatform\Handlers\StrategyRotatingFileHandler::class,
        'strategy' => 'weekly',   // or 'monthly', 'custom'
    ],
],
```

Security
--------

[](#security)

By default the API uses the `api` middleware and the UI uses `web`. Override in config:

```
'security' => [
    'middleware'    => ['api', 'auth:sanctum'],
    'ui_middleware' => ['web', 'auth'],
],
```

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

11

Last Release

94d ago

Major Versions

v1.8.0 → v2.0.02026-03-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a31328ff75e69b28bb18cc555f08e3908b347665541e8d4678328233f7ad43b?d=identicon)[willypelz](/maintainers/willypelz)

---

Top Contributors

[![willypelz](https://avatars.githubusercontent.com/u/23083380?v=4)](https://github.com/willypelz "willypelz (12 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/willypelz-laravel-log-platform/health.svg)

```
[![Health](https://phpackages.com/badges/willypelz-laravel-log-platform/health.svg)](https://phpackages.com/packages/willypelz-laravel-log-platform)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[rapidez/core

Rapidez Core

1822.4k65](/packages/rapidez-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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