PHPackages                             fqathf/loglytics - 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. fqathf/loglytics

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

fqathf/loglytics
================

A lightweight and powerful Crashlytics-like log viewer package for Laravel.

v1.0.1(1mo ago)10MITPHPPHP ^8.1CI passing

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/fqathf/loglytics)[ Packagist](https://packagist.org/packages/fqathf/loglytics)[ RSS](/packages/fqathf-loglytics/feed)WikiDiscussions master Synced 1w ago

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

Loglytics
=========

[](#loglytics)

[![Latest Stable Version](https://camo.githubusercontent.com/68a133e85b504fe9c66318373de184715a321356f2092b96c5fc6febc8a0f372/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6671617468662f6c6f676c79746963733f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/fqathf/loglytics)[![Build Status](https://camo.githubusercontent.com/fa4f509ed31c9427ca605cd4da69cb24290aa46694e33b117486173bfd84cb29/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6671617468662f6c6f676c79746963732f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/fqathf/loglytics/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/d1c66b9b548e222d67fece32ff7396c2cd9c92324744504ea20990dfbd749ea5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6671617468662f6c6f676c79746963733f7374796c653d666c61742d737175617265)](https://github.com/fqathf/loglytics/blob/master/LICENSE)[![PHP Version](https://camo.githubusercontent.com/3250a416c21d12b6a0b6e08793b8a36edb7ca6062348ddd3d394b1a70adf89d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6671617468662f6c6f676c79746963733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fqathf/loglytics)

A lightweight and powerful **Crashlytics-like** log viewer package for Laravel. Parse, track, and manage your Laravel application logs with a beautiful standalone UI.

Features
--------

[](#features)

- **Crashlytics-style Error Grouping** — Errors automatically grouped by exception type
- **Bug Status Tracking** — Mark occurrences as `solved` or `open`
- **Bulk Status Updates** — Select and update multiple entries at once
- **Level Filtering** — Filter by ERROR, WARNING, INFO, DEBUG
- **Date Range Filtering** — Preset ranges (1 day, 1 week, etc.) or custom dates
- **Severity &amp; Trend Analysis** — Visual indicators for severity and trend direction
- **CSV Export** — Export filtered log data to CSV
- **Dark Mode** — Toggle between light and dark themes
- **Log Caching** — Parsed results cached for better performance
- **Standalone UI** — Bootstrap 5 + Feather Icons via CDN, no conflicts with your admin panel
- **Configurable Authorization** — Gate-based or allow-list authorization
- **Rate Limiting** — Built-in rate limiting on write operations
- **Supports Laravel 10, 11**

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

[](#requirements)

- **PHP** ^8.1
- **Laravel** ^10.0 | ^11.0
- **SQLite or MySQL/PostgreSQL** (for bug status tracking)

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

[](#installation)

```
composer require fqathf/loglytics
```

The service provider is auto-discovered. Run migrations:

```
php artisan migrate
```

### Optional: Publish Configuration

[](#optional-publish-configuration)

```
# Publish config only
php artisan vendor:publish --tag=loglytics-config

# Publish views (to customize UI)
php artisan vendor:publish --tag=loglytics-views

# Publish migrations (to customize table)
php artisan vendor:publish --tag=loglytics-migrations
```

Quick Start
-----------

[](#quick-start)

Navigate to `/log-viewer` in your browser. Done!

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

[](#configuration)

### Route &amp; Middleware

[](#route--middleware)

```
// config/loglytics.php
'route' => [
    'prefix' => 'log-viewer',        // Change URL prefix
    'middleware' => ['web', 'auth'],  // Add your middleware
    'domain' => null,                 // e.g. 'logs.example.com'
],
```

### Authorization

[](#authorization)

Protect the log viewer with a Gate:

```
// app/Providers/AuthServiceProvider.php
public function boot()
{
    Gate::define('viewLogViewer', function ($user) {
        return $user->isAdmin();
    });
}
```

```
// config/loglytics.php
'authorization' => [
    'enabled' => true,
    'gate' => 'viewLogViewer',
],
```

Or use an allow-list:

```
'authorization' => [
    'enabled' => true,
    'allow_only' => [1, 2, 3], // User IDs
],
```

### UUID Support

[](#uuid-support)

If your `users` table uses UUIDs:

```
'database' => [
    'user_model' => \App\Models\User::class,
    'user_primary_key_type' => 'uuid',
],
```

### Custom Log Path

[](#custom-log-path)

```
'log_path' => '/var/log/my-app', // Absolute path
```

### Caching

[](#caching)

```
'cache' => [
    'enabled' => true,
    'prefix' => 'loglytics',
    'ttl' => 60, // seconds
],
```

Integration Guide
-----------------

[](#integration-guide)

### Minimal Setup

[](#minimal-setup)

```
composer require fqathf/loglytics
php artisan migrate
# Visit /log-viewer
```

### Production Setup

[](#production-setup)

```
// config/loglytics.php
return [
    'route' => [
        'prefix' => 'admin/logs',
        'middleware' => ['web', 'auth', 'admin'],
    ],
    'authorization' => [
        'enabled' => true,
        'gate' => 'viewLogViewer',
    ],
    'cache' => [
        'enabled' => true,
        'ttl' => 120,
    ],
];
```

### Customizing Views

[](#customizing-views)

```
php artisan vendor:publish --tag=loglytics-views
# Edit resources/views/vendor/loglytics/*.blade.php
```

Package Structure
-----------------

[](#package-structure)

```
fqathf/loglytics/
├── config/loglytics.php
├── database/migrations/
├── resources/views/
├── routes/web.php
├── src/
│   ├── Http/Controllers/LogViewerController.php
│   ├── Models/LogBugStatus.php
│   ├── Services/LogViewerService.php
│   └── LogViewerServiceProvider.php
├── CHANGELOG.md
├── CONTRIBUTING.md
└── README.md

```

Security
--------

[](#security)

If you discover a security vulnerability, please report it through [GitHub Security Advisories](https://github.com/fqathf/loglytics/security/advisories/new) instead of using the issue tracker.

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

2

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db58710e710eae4b12905540be9d61a38c7ee89d8378e5dd63ed4c4312e765f?d=identicon)[fqathf](/maintainers/fqathf)

---

Top Contributors

[![fqathf](https://avatars.githubusercontent.com/u/100032449?v=4)](https://github.com/fqathf "fqathf (28 commits)")

---

Tags

loglaravelViewercrashlyticsloglytics

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k31.8M166](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k17.6M165](/packages/laravel-pulse)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[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.

45945.2k1](/packages/pressbooks-pressbooks)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)

PHPackages © 2026

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