PHPackages                             codebuds/easyadmin-log-viewer-bundle - 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. codebuds/easyadmin-log-viewer-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

codebuds/easyadmin-log-viewer-bundle
====================================

A Symfony bundle that provides a log viewer interface for EasyAdmin backends

1.1.0(2mo ago)0284MITPHPPHP ^8.5CI passing

Since Sep 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/DennisdeBest/EasyAdminLogViewerBundle)[ Packagist](https://packagist.org/packages/codebuds/easyadmin-log-viewer-bundle)[ Docs](https://github.com/DennisdeBest/EasyAdminLogViewerBundle)[ RSS](/packages/codebuds-easyadmin-log-viewer-bundle/feed)WikiDiscussions master Synced today

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

EasyAdmin Log Viewer Bundle
===========================

[](#easyadmin-log-viewer-bundle)

A Symfony bundle that provides a log viewer interface for EasyAdmin backends.

Features
--------

[](#features)

- Browse available log files from the admin
- View parsed log entries with multiline stack traces
- Filter log entries by channel and level
- Download log files
- Delete log files
- Configure the admin route prefix

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

[](#requirements)

- PHP 8.5+
- Symfony 8+
- EasyAdmin 4.29+ or 5.x

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

[](#installation)

Install the bundle with Composer:

```
composer require codebuds/easyadmin-log-viewer-bundle
```

Symfony Flex should enable the bundle automatically. Without Flex, add it to `config/bundles.php`:

```
return [
    // ...
    CodeBuds\EasyAdminLogViewerBundle\EasyAdminLogViewerBundle::class => ['all' => true],
];
```

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

[](#configuration)

The bundle works out of the box. If needed, create `config/packages/easy_admin_log_viewer.yaml` to override the defaults:

```
easy_admin_log_viewer:
    route_prefix: '/admin'
    levels:
        - { level: 'EMERGENCY', class: 'danger' }
        - { level: 'CRITICAL', class: 'danger' }
        - { level: 'ERROR', class: 'danger' }
        - { level: 'ALERT', class: 'danger' }
        - { level: 'WARNING', class: 'warning' }
        - { level: 'NOTICE', class: 'info' }
        - { level: 'INFO', class: 'info' }
        - { level: 'DEBUG', class: 'secondary' }
```

The configured `class` values map directly to Bootstrap contextual classes such as `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `light`, and `dark`.

Routing
-------

[](#routing)

Routes are imported automatically by the bundle. You can customize the route prefix like this:

```
easy_admin_log_viewer:
    route_prefix: '/custom-admin'
```

Adding the Log Viewer to the Dashboard
--------------------------------------

[](#adding-the-log-viewer-to-the-dashboard)

Add the route to your EasyAdmin dashboard controller:

```
