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

ActiveKirby-plugin

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

Use the Monolog logger library with Kirby CMS

0.1.1(1y ago)1475↓50%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 1mo ago

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 49% of packages

Maintenance45

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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

432d 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

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)

PHPackages © 2026

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