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

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

lumisys/log-viewer-bundle
=========================

A log viewer bundle for Symfony 6 and up

1.2.5(1y ago)027MITPHPPHP &gt;=8.1

Since Jan 21Pushed 1y agoCompare

[ Source](https://github.com/LumiSys/symfony-log-viewer-bundle)[ Packagist](https://packagist.org/packages/lumisys/log-viewer-bundle)[ Docs](https://github.com/LumiSys/symfony-log-viewer-bundle)[ RSS](/packages/lumisys-log-viewer-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (36)Versions (24)Used By (0)

[![License](https://camo.githubusercontent.com/88e1dabf4d223df0950e0985948e231325fefca9fa7fe9e446cf8b1c5e9d9e47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e)](LICENSE)[![Minimum PHP Version](https://camo.githubusercontent.com/230588f62e4b3ba29858fcfcf1bbfe253f82c4180088091d6c7d4c6c06d80145/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d383839324246)](https://php.net/)[![Minimum Symfony Version](https://camo.githubusercontent.com/31f0b71d9b1ecfd87e40a45f7a40f690db8079b604b0fbacb978fb8a6ea72f5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253345253344253230362e302d627269676874677265656e)](https://symfony.com/releases)[![Vuejs](https://camo.githubusercontent.com/8192a788afb05fd76df3375b51e18a82e91ff4879678c0d644e9d8c6b2e02c72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7675656a732d332e342d627269676874677265656e)](https://vuejs.org/)[![codecov](https://camo.githubusercontent.com/596f59560cd6b2a72c846382e74f04af84e99b98913e93d8bc8712e99209feff/68747470733a2f2f636f6465636f762e696f2f67682f6672616e6b64656b6b65722f73796d666f6e792d6c6f672d7669657765722d62756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/frankdekker/symfony-log-viewer-bundle)[![Run tests](https://github.com/frankdekker/symfony-log-viewer-bundle/actions/workflows/test.yml/badge.svg)](https://github.com/frankdekker/symfony-log-viewer-bundle/actions/workflows/test.yml/badge.svg)

Log viewer for Symfony
======================

[](#log-viewer-for-symfony)

*Inspired by [opcodesio/log-viewer](https://github.com/opcodesio/log-viewer) for Laravel*[![log-viewer](docs/images/preview.png)](docs/images/preview.png)

**Log Viewer**: a bundle for your [Symfony](https://symfony.com/) app. It provides a user-friendly UI to read, filter and search log files.

Out of the box it will read your Monolog logs in the `var/log` directory, but can be configured to read logs from any directory.

### Features

[](#features)

- 📂 View all the **Monolog logs** in the `%kernel.logs_dir%` directory,
- 📂 **View other types of logs** - Apache, Nginx, or custom logs,
- 🔍 **Search** the logs,
- 🔍 **Filter** by log level (error, info, debug, etc.), by channel, date range or log content inclusion or exclusion,
- 🔍 **Search** multiple log files at once,
- 🌑 **Dark mode**,
- 🖥️ **Multiple host** support,
- 💾 **Download** or **delete** log files from the UI,
- ☎️ **API access** for folders, files &amp; log entries,

Getting started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- **PHP 8.1+**
- **Symfony 6.0+ or 7.0+**

### Installation

[](#installation)

Use [composer](https://getcomposer.org/).

```
composer require fdekker/log-viewer-bundle
```

If you don't use Symfony Flex, you'll need to manually enable the bundle:

```
# /config/bundles.php
return [
    // ...
    FD\LogViewer\FDLogViewerBundle::class => ['all' => true],
];
```

And add the route by creating file `/config/routes/fd_log_viewer.php`:

```
