PHPackages                             serendipity\_hq/monolog-html-line-formatter - 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. serendipity\_hq/monolog-html-line-formatter

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

serendipity\_hq/monolog-html-line-formatter
===========================================

Formats Monolog's log lines to make them colorful when displayed in HTML.

4.0.1(1y ago)319.6k↓33.3%[5 PRs](https://github.com/Aerendir/monolog-html-line-formatter/pulls)MITPHPPHP ^8.3CI passing

Since May 12Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Aerendir/monolog-html-line-formatter)[ Packagist](https://packagist.org/packages/serendipity_hq/monolog-html-line-formatter)[ Docs](https://github.com/Aerendir/monolog-html-line-formatter)[ RSS](/packages/serendipity-hq-monolog-html-line-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (19)Used By (0)

 [ ![](https://camo.githubusercontent.com/5041251627a7ec1bf9335a20531d818d198f5315fc6e12d88c4694c9dcfd5bc7/687474703a2f2f7777772e736572656e64697069747968712e636f6d2f6173736574732f6f70656e2d736f757263652d70726f6a656374732f4c6f676f2d536572656e64697069747948512d49636f6e2d546578742d507572706c652e706e67) ](http://www.serendipityhq.com)

Serendipity HQ Monolog HTML Line Log
====================================

[](#serendipity-hq-monolog-html-line-log)

A Monolog Formatter to make log lines colorful depending on their level.

 [![](https://camo.githubusercontent.com/a7b2e31ed0dbbd445ad8510a7d8c2920307819043a37b4b1f8c23b796473d8b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736572656e6469706974795f68712f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/Aerendir/monolog-html-line-formatter/releases) [![](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT) [![](https://camo.githubusercontent.com/ed8a3e5abf1e50da4024e25d31ee283aaa8a9caf5eefb16407971d544534b889/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736572656e6469706974795f68712f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465723f636f6c6f723d253233383839324246267374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/monolog-html-line-formatter/releases) [![](https://camo.githubusercontent.com/494d4944f787306c53385673c85048e042b286004cbba29000100e967cff80e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6f6e6f6c6f672d253545332e302d3333333f7374796c653d666c61742d737175617265266c6f676f3d706870 "Tested with Monolog ^3.0")](https://camo.githubusercontent.com/494d4944f787306c53385673c85048e042b286004cbba29000100e967cff80e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6f6e6f6c6f672d253545332e302d3333333f7374796c653d666c61742d737175617265266c6f676f3d706870)

Current Status
--------------

[](#current-status)

[![Maintainability Rating](https://camo.githubusercontent.com/c552a398b3603fb97bae7765a9ac4cf628afe6efc7f8f7dc239727bab64178fd/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)[![Quality Gate Status](https://camo.githubusercontent.com/3d51d3df9f4219625f4a99ca6ebc0f12e6352fc643b6cf5bfaf0d456a6dda5e3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)[![Reliability Rating](https://camo.githubusercontent.com/077528b293705b5409458556e85261f875a3bf47fd80efdc9269f3a613f735cf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)[![Security Rating](https://camo.githubusercontent.com/6cbbc9055a42567588b73b4734df34c5b444c1ed89dda403b6284dcf00e0eeac/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)[![Technical Debt](https://camo.githubusercontent.com/d6f84ae737b948d67e0b2f6e94990665ac9fc991aab48ce3a256707ae354487f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)[![Vulnerabilities](https://camo.githubusercontent.com/75c27c24dec7bf9a4cb2fd6393253126b8be6844f3c29ec353e36b23ac8a54fe/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d6174746572266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=Aerendir_monolog-html-line-formatter)

[![PHPStan](https://github.com/Aerendir/monolog-html-line-formatter/workflows/PHPStan/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)[![PSalm](https://github.com/Aerendir/monolog-html-line-formatter/workflows/PSalm/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)[![PHPUnit](https://github.com/Aerendir/monolog-html-line-formatter/workflows/PHPunit/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)[![Composer](https://github.com/Aerendir/monolog-html-line-formatter/workflows/Composer/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)[![PHP CS Fixer](https://github.com/Aerendir/monolog-html-line-formatter/workflows/PHP%20CS%20Fixer/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)[![Rector](https://github.com/Aerendir/monolog-html-line-formatter/workflows/Rector/badge.svg)](https://github.com/Aerendir/monolog-html-line-formatter/actions?query=branch%3Adev)

[![codecov](https://camo.githubusercontent.com/b215b83a922f0e1531e1be6432143f5d5b181a6221d265055eaebde247d98f5b/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722f67726170682f62616467652e7376673f746f6b656e3d78795936386c32696c52)](https://codecov.io/gh/Aerendir/monolog-html-line-formatter)

[![CodeCov SunBurst](https://camo.githubusercontent.com/45d7f7828f602fe13ec1d307ab694273b5c3978ecc2da1dd3ec4d7bd99c3372e/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722f6272616e63682f6d61737465722f6772617068732f73756e62757273742e7376673f746f6b656e3d78795936386c32696c52)](https://codecov.io/gh/Aerendir/monolog-html-line-formatter)[![CodeCov Tree](https://camo.githubusercontent.com/62e86a5f5bb64a55f78dfbe01f35508fd4a79e3f90e355164e1890c8fa6fced3/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722f6272616e63682f6d61737465722f6772617068732f747265652e7376673f746f6b656e3d78795936386c32696c52)](https://codecov.io/gh/Aerendir/monolog-html-line-formatter)[![CodeCov I Cicle](https://camo.githubusercontent.com/8dc44a6c6cf11e5f88228ccaf9e17f49224dbe823642d3ede4955d8f00c86fe7/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722f6272616e63682f6d61737465722f6772617068732f696369636c652e7376673f746f6b656e3d78795936386c32696c52)](https://codecov.io/gh/Aerendir/monolog-html-line-formatter)

---

###  **Do you like this library?**
 **[LEAVE A ★](#js-repo-pjax-container)**

[](#----do-you-like-this-library----leave-a-)

 or run
 `composer global require symfony/thanks && composer thanks`
 to say thank you to all libraries you use in your current project, this included!

---

Install monolog-html-line-formatter via Composer
------------------------------------------------

[](#install-monolog-html-line-formatter-via-composer)

```
$ composer require serendipity_hq/monolog-html-line-formatter

```

This library follows the  versioning conventions.

How to use Serendipity HQ Monolog HTML Line Formatter
-----------------------------------------------------

[](#how-to-use-serendipity-hq-monolog-html-line-formatter)

```
// Crate a Monolog Logger
$logger = new \Monolog\Logger('The name of your Logger');

try {
    $handler = new TheHandlerYouChose($logFile, \Monolog\Level::Debug);
    $handler->setFormatter(new MonologHtmlLineFormatter());
} catch(\Throwable $e) {
    throw $e;
}

// Now add some handlers
$logger->pushHandler($handler);
```

---

###  **Do you like this library?**
 **[LEAVE A ★](#js-repo-pjax-container)**

[](#----do-you-like-this-library----leave-a--1)

 or run
 `composer global require symfony/thanks && composer thanks`
 to say thank you to all libraries you use in your current project, this included!

---

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance61

Regular maintenance activity

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~299 days

Total

11

Last Release

396d ago

Major Versions

1.0.0 → 2.0.02020-08-31

2.0.3 → 3.0.02021-12-27

3.0.3 → 4.0.02025-04-18

PHP version history (4 changes)2.0.0PHP ^7.3

2.0.3PHP ^7.3|^8.0

3.0.0PHP ^7.4|^8.0

4.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd91a553e180dea3a2e726643704e33a1d7e4c818b65ead1516ddf2f4e23ea43?d=identicon)[Aerendir](/maintainers/Aerendir)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (581 commits)")[![kodiakhq[bot]](https://avatars.githubusercontent.com/in/29196?v=4)](https://github.com/kodiakhq[bot] "kodiakhq[bot] (513 commits)")[![Aerendir](https://avatars.githubusercontent.com/u/1968622?v=4)](https://github.com/Aerendir "Aerendir (180 commits)")[![leonardofalanga](https://avatars.githubusercontent.com/u/20907369?v=4)](https://github.com/leonardofalanga "leonardofalanga (1 commits)")

---

Tags

formatterhtmlmonologcolorful

###  Code Quality

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/serendipity-hq-monolog-html-line-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/serendipity-hq-monolog-html-line-formatter/health.svg)](https://phpackages.com/packages/serendipity-hq-monolog-html-line-formatter)
```

###  Alternatives

[maxbanton/cwh

AWS CloudWatch Handler for Monolog library

42515.3M27](/packages/maxbanton-cwh)[bref/monolog-bridge

Monolog formatter optimized for AWS Lambda and CloudWatch

111.2M3](/packages/bref-monolog-bridge)

PHPackages © 2026

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