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.9.0(1mo ago)027314MITPHPPHP ^8.2CI passing

Since Sep 22Pushed 1mo 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 3w ago

READMEChangelog (10)Dependencies (11)Versions (49)Used By (14)

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/21f96a88b167fb3d44f5353f9cd480b0311e4612eb2bef7725ecfc09a8b0b8d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4372616674253230434d532d352e302532422d6f72616e67652e737667)](https://craftcms.com/)[![PHP](https://camo.githubusercontent.com/0f16581d1180dbfd4c0e13166ec1267d4ad2f2fab8281ea6d6b284cf5c65d921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/01395250cf4c183d7915a8ea8b8c64daacfbb378a3dfeacf8c37d8cfb5b999b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c696e64656d616e6e726f636b2f63726166742d6c6f6767696e672d6c6962726172792e737667)](LICENSE)

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

Beta Notice
-----------

[](#beta-notice)

This plugin is currently in active development and provided under the MIT License for testing purposes.

**Licensing is subject to change.** We are finalizing our licensing structure and some or all features may require a paid license when officially released on the Craft Plugin Store.

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
- **Control Panel Section** — access the standalone viewer from **Logging Library → All Logs** when the CP section is enabled
- **LoggingTrait** — drop-in trait with `logInfo()`, `logWarning()`, `logError()`, `logDebug()`
- **LoggingService API** — direct logging, log statistics, recent entries, and cleanup
- **High Performance Caching** — handle 40,000+ entries instantly with ArrayQuery and file-based caching
- **Multi-Format Parsing** — automatically detects plugin, Craft CMS, and PHP error log formats
- **Edge Detection** — auto-disables 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

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

[](#requirements)

- Craft CMS 5.0+
- PHP 8.2+

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require lindemannrock/craft-logging-library
```

```
php craft plugin/install logging-library
```

### Using DDEV

[](#using-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](LICENSE) for details.

---

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

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance93

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Recently: every ~12 days

Total

47

Last Release

35d 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 (262 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 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.

4249.7k](/packages/verbb-vizy)[superbig/craft-audit

Log adding/updating/deleting of elements

2054.1k](/packages/superbig-craft-audit)[born05/craft-sentry

Pushes Craft CMS errors to Sentry.

10139.6k2](/packages/born05-craft-sentry)

PHPackages © 2026

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