PHPackages                             lindemannrock/craft-logging-library - 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. lindemannrock/craft-logging-library

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

lindemannrock/craft-logging-library
===================================

Reusable logging library for Craft CMS plugins

5.18.0(5d ago)0734[1 issues](https://github.com/LindemannRock/craft-logging-library/issues)15MITPHPPHP ^8.2CI passing

Since Sep 22Pushed 2w agoCompare

[ Source](https://github.com/LindemannRock/craft-logging-library)[ Packagist](https://packagist.org/packages/lindemannrock/craft-logging-library)[ RSS](/packages/lindemannrock-craft-logging-library/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (35)Versions (61)Used By (15)

[![Logging Library](docs/images/hero.webp)](docs/images/hero.webp)

Logging Library for Craft CMS
=============================

[](#logging-library-for-craft-cms)

[![Latest Version](https://camo.githubusercontent.com/3b0d95d7b0a6add6bf2cf2348c1ac5b0044ac64fc79096fd80bd16317840fd60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696e64656d616e6e726f636b2f63726166742d6c6f6767696e672d6c6962726172792e737667)](https://packagist.org/packages/lindemannrock/craft-logging-library)[![Craft CMS](https://camo.githubusercontent.com/c0b93b9b54745b140b9bb70fb17afd8d836918d1281a42ef4c111f3f0d7e44e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4372616674253230434d532d352e31302532422d6f72616e67652e737667)](https://craftcms.com/)[![PHP](https://camo.githubusercontent.com/0f16581d1180dbfd4c0e13166ec1267d4ad2f2fab8281ea6d6b284cf5c65d921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/01395250cf4c183d7915a8ea8b8c64daacfbb378a3dfeacf8c37d8cfb5b999b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c696e64656d616e6e726f636b2f63726166742d6c6f6767696e672d6c6962726172792e737667)](LICENSE.md)

A reusable logging library for Craft CMS plugins that provides consistent logging, dedicated log files, and a built-in log viewer interface.

Features
--------

[](#features)

- **Dedicated Log Files** — each plugin gets its own daily log files in `storage/logs/`
- **Built-in Log Viewer** — web interface for viewing, filtering, searching, and downloading logs
- **Standalone System Log Viewer** — browse all Craft, plugin, and PHP logs from one interface
- **Runtime Logs** — cache-backed view of recent log activity for edge/ephemeral hosting where log files don't persist
- **Control Panel Section** — access the standalone viewer from **Logging Library → All Logs** when the CP section is enabled
- **Control Panel Settings** — display name, menu visibility, entries-per-page, and timestamp format, all overridable from `config/logging-library.php`
- **LoggingTrait** — drop-in trait with `logInfo()`, `logWarning()`, `logError()`, `logDebug()`
- **LoggingService API** — direct logging, log statistics, recent entries, and cleanup
- **High Performance Caching** — indexed file-based cache for large log viewer pages, with ArrayQuery compatibility for API callers
- **Multi-Format Parsing** — automatically detects plugin, Craft CMS, and PHP error log formats
- **Edge Detection** — auto-disables the file-based log viewer on edge/CDN platforms like Servd
- **Monolog Integration** — uses Craft 5's Monolog system with proper PSR-3 standards
- **Configurable** — customizable log levels, retention, permissions, and sidebar menus

On platforms like Servd, Logging Library does not import the host's centralized log feed into Craft. The file-based CP viewer reads local `storage/logs/` files only; Servd-collected logs remain available in the Servd dashboard and any connected external logging service. For recent-activity visibility in the CP on those platforms, enable the cache-backed **Runtime Logs** view.

Requirements
------------

[](#requirements)

- Craft CMS 5.10+
- PHP 8.2+

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

[](#installation)

### Composer

[](#composer)

```
composer require lindemannrock/craft-logging-library && php craft plugin/install logging-library
```

### DDEV

[](#ddev)

```
ddev composer require lindemannrock/craft-logging-library && ddev craft plugin/install logging-library
```

Documentation
-------------

[](#documentation)

Full documentation is available in the [docs](docs/) folder.

Support
-------

[](#support)

- **Issues**: [GitHub Issues](https://github.com/LindemannRock/craft-logging-library/issues)
- **Email**:

License
-------

[](#license)

This plugin is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.

---

Developed by [LindemannRock](https://lindemannrock.com)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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 ~5 days

Total

59

Last Release

5d ago

Major Versions

1.10.4 → 5.0.02025-10-20

PHP version history (3 changes)v1.0.0PHP &gt;=8.1

1.1.0PHP &gt;=8.2

1.10.1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81223527?v=4)[Lindemann](/maintainers/bhlindemann)[@bhlindemann](https://github.com/bhlindemann)

---

Top Contributors

[![bhlindemann](https://avatars.githubusercontent.com/u/81223527?v=4)](https://github.com/bhlindemann "bhlindemann (394 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (25 commits)")

---

Tags

craft-plugincraft5craftcmsdeveloper-toolslog-viewerloggingmonologpsr-3reusablelogginglibrarycmsCraftcraftcmscraft-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lindemannrock-craft-logging-library/health.svg)

```
[![Health](https://phpackages.com/badges/lindemannrock-craft-logging-library/health.svg)](https://phpackages.com/packages/lindemannrock-craft-logging-library)
```

###  Alternatives

[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)

PHPackages © 2026

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