PHPackages                             presprog/kirby-monolog - 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. presprog/kirby-monolog

ActiveKirby-plugin[Logging &amp; Monitoring](/categories/logging)

presprog/kirby-monolog
======================

Use the Monolog logger library with Kirby CMS

0.1.1(1y ago)1557↓43.8%MITPHP

Since Feb 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/presprog/kirby-monolog)[ Packagist](https://packagist.org/packages/presprog/kirby-monolog)[ RSS](/packages/presprog-kirby-monolog/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

📜 Monolog for Kirby CMS
=======================

[](#-monolog-for-kirby-cms)

This plugin adds the [Monolog logging library](https://github.com/Seldaek/monolog) to Kirby.

> ⚡ Ready for Kirby 4!

🤟Usage
------

[](#usage)

Use the `monolog()` helper function:

```
// Write to the default log file
monolog()->log('something happend 😱');

// Log to another channel (only changes the filename for now)
// Will log to "your-log-dir/other-channel-$date.log"
monolog('other-channel')->log('something happend 😱');

// Change the log level (any of \Psr\Log\LogLevel)
monolog()->log('something CRITICAL happend 😱', 'critical');

// …
```

If you throw and handle exceptions in your own code, you may log them with `site()->logException()`:

```
try {
    // ..
} catch(\Exception $exception) {
    site()->logException($exception)
}
```

This will log the exception message with `critical` level alongside the stack trace.

The plugin also automatically listens to Kirby `system.exception` hook and logs the exception message as well as the stacktrace to the default log file.

💻 How to install
----------------

[](#-how-to-install)

**via Composer** (recommended)

```
$ composer require presprog/kirby-monolog:^0.1
```

**via ZIP archive**

Download the ZIP archive, extract it into your plugins folder (defaults to `site/plugins`) and rename the subfolder to `monolog`.

✅ To do
-------

[](#-to-do)

- Define more channels via the config file
- …

Alternatives
------------

[](#alternatives)

There are plenty of alternatives:

- [bnomei/monolog](https://getkirby.com/plugins/bnomei/monolog) by Bruno Meilick (This one also integrates Monolog)
- [johannschopplich/kirbylog](https://getkirby.com/plugins/johannschopplich/kirbylog) by Johann Schopplich (This one is dependency-free!)
- [michnhokn/logger](https://getkirby.com/plugins/michnhokn/logger) by Michael Scheurich
- [bvdputte/log](https://getkirby.com/plugins/bvdputte/log) by Bert Vandeputte

---

Made with ♥️ and ☕ by [Present Progressive](https://www.presentprogressive.de)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance42

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

2

Last Release

485d ago

### Community

Maintainers

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

---

Top Contributors

[![bezin](https://avatars.githubusercontent.com/u/4400435?v=4)](https://github.com/bezin "bezin (14 commits)")

---

Tags

kirbykirby-cmskirby-pluginkirby3kirby4

### Embed Badge

![Health badge](/badges/presprog-kirby-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/presprog-kirby-monolog/health.svg)](https://phpackages.com/packages/presprog-kirby-monolog)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[laravel/nightwatch

The official Laravel Nightwatch package.

36210.1M36](/packages/laravel-nightwatch)

PHPackages © 2026

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