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

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

yoshi2889/log-viewer-bundle-php73
=================================

Simple log viewer bundle for symfony 5, fork for PHP 7.3 support

1.4.1(4y ago)084MITPHPPHP ^7.4

Since Mar 4Pushed 4y agoCompare

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

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

Simple log Viewer Symfony Bundle
================================

[](#simple-log-viewer-symfony-bundle)

PLEASE USE [THE ORIGINAL BUNDLE](https://github.com/evotodi/log-viewer-bundle) WHEN POSSIBLE!
=============================================================================================

[](#please-use-the-original-bundle-when-possible)

This is just a temporary fork to restore PHP 7.3 support until some internal projects are updated to PHP 7.4.

---

LogViewerBundle is a basic log viewer for symfony. It allows you to list and view all of the symfony logs or external logs in one easy place with level highlighting and level filtering.

\###Caution:Upgrading from a version older than 1.4 will break your log patterns. See [breaking changes](#breaking-changes) below.

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

[](#installation)

Install the package with:

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

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

[](#configuration)

Create the routes yaml file `config/routes/evo_log_viewer_routes.yaml`

```
evo_log_viewer:
  resource: '@EvotodiLogViewerBundle/Resources/config/routes.xml'
  prefix: '/logs'
```

Create the config yaml file `config/packages/evo_log_viewer.yaml`

```
# List of log files to show
evo_log_viewer:
    log_files:
        # Unique identifier for the logfile
        somelog1:
            # Use full path
            path: 'Some/Full/Path/to/Log/File.Ext'

            # Pretty name to display else file name
            name: My Log Files Pretty Name

            # (Optional) Number of days to pull from log. See ddtraceweb/monolog-parser.
            days: 0

            # (Optional) See ddtraceweb/monolog-parser for patterns.
            pattern: null

            # (Optional) PHP style date format of log file
            date_format: 'Y-m-d H:i:s'

            # (Optional) Use P in the pattern
            use_channel: true

          # (Optional) Use P in the pattern
            use_level: true

            # (Optional) Log level spelling. Case sensitive
            levels:
                debug: DEBUG
                info: INFO
                notice: NOTICE
                warning: WARNING
                error: ERROR
                alert: ALERT
                critical: CRITICAL
                emergency: EMERGENCY

        somelog2:
            path: '/path/to/logfile.log'
            name: Pretty Logfile Name

    # Show App logs in var/log
    show_app_logs: true

    # (Optional) Change the default parser pattern
    app_pattern: '/\[(?P.*)\] (?P\w+).(?P\w+): (?P[^\[\{].*[\]\}])/'

    # (Optional) Change the default date format
    app_date_format: 'Y-m-d H:i:s'
```

Advanced Configuration
----------------------

[](#advanced-configuration)

#### pattern

[](#pattern)

The default pattern is `'/\[(?P.*)\] (?P\w+).(?P\w+): (?P[^\[\{].*[\]\}])/'`
You can change the regex pattern to match your log file but the pattern must include `P`, `P`, `P`, and `P` as regex groups. You can omit the `P` and `P` by setting use\_channel: false and use\_level: false respectively.
Example `'/\[(?P.+)\] (?P\w+).(?P\w+): (?P.*)/'`
See ddtraceweb/monolog-parser for other examples but ommit `P` and `P`

#### days

[](#days)

Setting days in the config to 0 will parse to whole log which is the default. Days set to 5 for example will parse the log until the date portion of the pattern if greater than DateTime('now') minus 5 days.

#### date\_format

[](#date_format)

This should be the php date format of the date portion of the pattern. Default is Y-m-d H:i:s / [PHP DateFormat](https://www.php.net/manual/en/function.date.php)

#### levels

[](#levels)

Override the default spelling for each level. e.g. WARNING -&gt; WARN

#### Breaking Changes

[](#breaking-changes)

Updating from an older version to version &gt;=1.4 will break your log patterns. This is easy to fix, just change `P` to `P`.

Thanks
------

[](#thanks)

Thanks to ddtraceweb/monolog-parser and greenskies/web-log-viewer-bundle.

Contributions
-------------

[](#contributions)

Contributions are very welcome!

Please create detailed issues and PRs.

License
-------

[](#license)

This package is free software distributed under the terms of the [MIT license](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~10 days

Total

8

Last Release

1697d ago

PHP version history (3 changes)1.0PHP ^7.1.3

1.1PHP ^7.2

1.3.1PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/64cbefa2b33116fa8d909bbeb6add16b949cd91864b693cd9c4797430ee7eb6d?d=identicon)[Yoshi2889](/maintainers/Yoshi2889)

---

Top Contributors

[![evotodi](https://avatars.githubusercontent.com/u/1625853?v=4)](https://github.com/evotodi "evotodi (20 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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