PHPackages                             roma-glushko/monolog-parser - 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. roma-glushko/monolog-parser

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

roma-glushko/monolog-parser
===========================

A parser for monolog log records

1.0.0(6y ago)35.7k1[1 PRs](https://github.com/roma-glushko/monolog-parser/pulls)1MITPHPCI passing

Since Mar 29Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/roma-glushko/monolog-parser)[ Packagist](https://packagist.org/packages/roma-glushko/monolog-parser)[ RSS](/packages/roma-glushko-monolog-parser/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

Monolog Parser
==============

[](#monolog-parser)

[![](https://github.com/roma-glushko/monolog-parser/workflows/CI/badge.svg)](https://github.com/roma-glushko/monolog-parser/workflows/CI/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/74a5f661af9656d96427b6729041250bcd174853535bb2f886be5e93caf0a6e4/68747470733a2f2f706f7365722e707567782e6f72672f726f6d612d676c7573686b6f2f6d6f6e6f6c6f672d7061727365722f762f737461626c65)](https://packagist.org/packages/roma-glushko/monolog-parser)[![License](https://camo.githubusercontent.com/779011a71a77b73fde97a3b070fa0031a529a1f578749b95791a7bcee41be8e7/68747470733a2f2f706f7365722e707567782e6f72672f726f6d612d676c7573686b6f2f6d6f6e6f6c6f672d7061727365722f6c6963656e7365)](https://packagist.org/packages/roma-glushko/monolog-parser)

A package for parsing [monolog](https://github.com/Seldaek/monolog) records including multiline support.

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

[](#installation)

```
composer require roma-glushko/monolog-parser
```

Usage
-----

[](#usage)

```
require_once 'path/to/vendor/autoload.php';

use MonologParser\Reader\LogReader;

$logFile = '/path/to/some/monolog.log';
$reader = new LogReader($logFile);

foreach ($reader as $i => $log) {
    echo sprintf(
      "The #%s log entry was written at %s. \n",
      $i,
      $log['date']->format('Y-m-d h:i:s')
    );
}

$lastLine = $reader[count($reader)-1];
echo sprintf(
  "The last log entry was written at %s. \n",
  $lastLine['date']->format('Y-m-d h:i:s')
);
```

Credits
-------

[](#credits)

This project is derived from [pulse00/monolog-parser](https://github.com/pulse00/monolog-parser) which is pretty cool but seems to be not actively supported and misses record mulitline support

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

Unknown

Total

1

Last Release

2288d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9402690?v=4)[Roman Glushko](/maintainers/roma-glushko)[@roma-glushko](https://github.com/roma-glushko)

---

Top Contributors

[![roma-glushko](https://avatars.githubusercontent.com/u/9402690?v=4)](https://github.com/roma-glushko "roma-glushko (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

logsmonologparserphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/roma-glushko-monolog-parser/health.svg)

```
[![Health](https://phpackages.com/badges/roma-glushko-monolog-parser/health.svg)](https://phpackages.com/packages/roma-glushko-monolog-parser)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M275](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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