PHPackages                             fixik/log-viewer - 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. fixik/log-viewer

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

fixik/log-viewer
================

A Laravel package for viewing log files

v1.2.2(10mo ago)23.0k↓50%MITBladePHP ^7.4 || ^8CI passing

Since Nov 3Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/OlegMarko/log-viewer)[ Packagist](https://packagist.org/packages/fixik/log-viewer)[ RSS](/packages/fixik-log-viewer/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Log Viewer Package
==========================

[](#laravel-log-viewer-package)

[![Latest Stable Version](https://camo.githubusercontent.com/04bccb832d1e4e22327bc45b17e7ac65892e89691370ae997e121d780118234c/68747470733a2f2f706f7365722e707567782e6f72672f666978696b2f6c6f672d7669657765722f762f737461626c65)](https://packagist.org/packages/fixik/log-viewer)[![Total Downloads](https://camo.githubusercontent.com/6b793e1b47e7af9a4f35755c5dcd2fc784eac38b2cc1e9480f757589887837f8/68747470733a2f2f706f7365722e707567782e6f72672f666978696b2f6c6f672d7669657765722f646f776e6c6f616473)](https://packagist.org/packages/fixik/log-viewer)[![License](https://camo.githubusercontent.com/10cb2335f7bb36fe563c329545ba7309312559607ddca57b3032cd43b886977f/68747470733a2f2f706f7365722e707567782e6f72672f666978696b2f6c6f672d7669657765722f6c6963656e7365)](https://packagist.org/packages/fixik/log-viewer)

A Laravel package for viewing and analyzing application log files with an easy-to-navigate interface. This package provides insights into log contents, including log type breakdown, and offers a convenient way to browse through the log directory.

Features
--------

[](#features)

- **Log Directory Navigation**: Browse through folders and view individual log files.
- **Log Analysis**: Summarize log entries by type (info, error, warning, etc.).
- **Detailed Log Viewer**: Display log contents in a structured table format, with modal support for full entry viewing.

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

[](#requirements)

- **PHP**: &gt;= 7.4
- **Laravel**: 7.x or 11.x

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

[](#installation)

1. **Install via Composer**:

    ```
    composer require fixik/log-viewer
    ```
2. **Publish Configuration and Views** (if required):

    ```
    php artisan vendor:publish --tag=log-viewer-config
    php artisan vendor:publish --tag=log-viewer-views
    ```

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

[](#configuration)

The default configuration allows you to specify:

- The log directory path (default is `storage/logs`).
- Customization for pagination and log display limits.

To customize, open the published configuration file located in `config/log-viewer.php`.

Usage
-----

[](#usage)

### Route Setup

[](#route-setup)

Add the following route to access the Log Viewer UI:

```
use Fixik\LogViewer\Controllers\LogViewerController;

Route::prefix('logs')->group(function () {
    Route::get('/', [LogViewerController::class, 'index'])->name('logs.index');
    Route::get('/view/{filename}', [LogViewerController::class, 'show'])->name('logs.show');
});
```

### Display Logs

[](#display-logs)

1. **Log File List**: Navigate to `/logs` to view a structured list of available log files.
2. **View Log Details**: Click on a log file to see its contents, summaries, and detailed entries.

### Example of `LogViewerController`

[](#example-of-logviewercontroller)

This package provides a pre-built controller for viewing logs. Here’s how it processes log files:

- **`index()`**: Retrieves the directory structure of the log directory.
- **`show()`**: Displays details for a specific log file, including a breakdown of log types.

Views
-----

[](#views)

The package includes customizable views:

- **Log List View**: Displays folders and log files.
- **Log Details View**: Displays log file contents and includes a modal for individual log entry details.

To customize the view files, edit the files in `resources/views/vendor/log-viewer`.

### Example Blade Usage for XML Logs

[](#example-blade-usage-for-xml-logs)

To display XML logs, use the following snippet in your Blade templates:

```
{{ $xmlContent }}
```

Customization
-------------

[](#customization)

### Changing Log Directory

[](#changing-log-directory)

Specify a different log directory, route or middleware in the config file:

```
'log_directory' => storage_path('custom-logs'),
'routes' => [
     'prefix' => env('LOG_VIEWER_ROUTE_PREFIX', 'log-viewer'),
     'middleware' => env('LOG_VIEWER_ROUTE_MIDDLEWARE', 'web'),
 ]
```

Support
-------

[](#support)

If you encounter issues, please file an issue in the GitHub repository or submit a pull request.

License
-------

[](#license)

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

---

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance53

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

11

Last Release

326d ago

### Community

Maintainers

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

---

Top Contributors

[![OlegMarko](https://avatars.githubusercontent.com/u/17251450?v=4)](https://github.com/OlegMarko "OlegMarko (11 commits)")

---

Tags

loglaravelloggingmonitoringadminViewer

### Embed Badge

![Health badge](/badges/fixik-log-viewer/health.svg)

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

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[saasscaleup/laravel-log-alarm

Laravel log Alarm help you to set up alarm when errors occur in your system and send you a notification via Slack and email

27025.0k](/packages/saasscaleup-laravel-log-alarm)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

90197.2k1](/packages/jenssegers-raven)

PHPackages © 2026

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