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

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

kira0269/symfony-log-viewer-bundle
==================================

Log viewer for Symfony 5 app

1.0.1(4y ago)07.1k↓100%1[2 issues](https://github.com/kira0269/symfony-log-viewer/issues)MITPHPPHP &gt;=7.4

Since Aug 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/kira0269/symfony-log-viewer)[ Packagist](https://packagist.org/packages/kira0269/symfony-log-viewer-bundle)[ RSS](/packages/kira0269-symfony-log-viewer-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (10)Used By (0)

LogViewer for Symfony 5.x
=========================

[](#logviewer-for-symfony-5x)

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

[](#installation)

- composer require kira0269/symfony-log-viewer-bundle

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

[](#configuration)

Add these lines in `config/routes/kira_log_viewer.yaml` :

```
kira_log_viewer:
    resource: "@LogViewerBundle/Resources/config/routes.yaml"
    prefix:   /logs
```

And these lines in `config/packages/kira_log_viewer.yaml` :

```
kira_log_viewer:
    #logs_dir: '%kernel.logs_dir%' - You can uncommented and edit this line to search logs somewhere else.

    file_pattern:
        date_format: 'Y-m-d'

    log_pattern: '\[\] \.:   '

    groups:
        date:
            regex: '.*'
            type: date
        channel:
            regex: '[a-z_]+'
            type: text
        level:
            regex: '[A-Z]+'
            type: text
        message:
            regex: '.*'
        context:
            regex: (?'array1'\[(?>(?>[^[\]]+)|(?&array1))*\])|(?'object1'{(?>(?>[^{}]+)|(?&object1))*}) # match array1 or object1
            type: json
        extra:
            regex: (?'array2'\[(?>(?>[^[\]]+)|(?&array2))*\]) # match array2
            type: json

    dashboard:
        date: 'yesterday'
        metrics_per_row: 3
        metrics:
            logs_of_day:
                title: Daily
                type: counter
                color: blue-600
                icon: fa-calendar-check
                filters:
                    level: [ INFO ]
                    channel: [ 'security' ]
                    message: [ 'login' ]
            notice:
                title: Notice
                color: yellow-600
                icon: fa-calendar-check
                filters:
                    level: [ NOTICE ]
            info:
                title: Info
                color: green-600
                icon: fa-calendar-check
                filters:
                    level: [ INFO ]
            debug:
                title: Debug
                color: gray-600
                icon: fa-calendar-check
                filters:
                    level: [ DEBUG ]
            error:
                title: Error
                color: red-600
                icon: fa-calendar-check
                filters:
                    level: [ ERROR ]
            all_logs:
                title: All
                color: indigo-600
                icon: fa-calendar-check
```

Usage
-----

[](#usage)

Inject the LogParserInterface into your Controller/Service and parse your logs :

```
class DefaultController extends AbstractController
{

    public function logsOfTheDay(LogParserInterface $logParser): Response
    {
        $date = new DateTime('now');
        $logs = $logParser->parseLogs($date);
        ...
    }

}
```

Dashboard configuration
-----------------------

[](#dashboard-configuration)

Define how many metrics should be displayed per row

```
metrics_per_row: integer
```

Define dashboard date filter

```
date: string (`today` or `yesterday` or `-6 day`)
```

Add custom blocks with parameters :

```
title: title of your block
type: counter by default
icon: fontawesome icon
color: tailwind css color of the block title and figure
filters: array of filters depending on groups names
```

Filters examples :

```
level: array of severity levels (case sensitive)
date: array of dates, ie. `today` or `yesterday` or `-6 day`
channel: array ie. `security` or 'authentication`
message: array of regexes that match the log message
extra: array of regexes that match the log extra message
```

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~11 days

Recently: every ~22 days

Total

9

Last Release

1600d ago

Major Versions

0.3.0 → 1.0.02021-08-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b4d0bb93d484fa9099a84244cf8b753c0d662e4cf84d2d704b0379cc2df48a8?d=identicon)[kira0269](/maintainers/kira0269)

---

Top Contributors

[![kira0269](https://avatars.githubusercontent.com/u/23486583?v=4)](https://github.com/kira0269 "kira0269 (19 commits)")[![rlemoine](https://avatars.githubusercontent.com/u/2573430?v=4)](https://github.com/rlemoine "rlemoine (1 commits)")

### Embed Badge

![Health badge](/badges/kira0269-symfony-log-viewer-bundle/health.svg)

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

###  Alternatives

[xiidea/easy-audit

A Symfony Bundle To Log Selective Events. It is easy to configure and easy to customize for your need

91177.6k](/packages/xiidea-easy-audit)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2828.1k1](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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