lindemannrock / craft-logging-library
Reusable logging library for Craft CMS plugins
Package info
github.com/LindemannRock/craft-logging-library
Type:craft-plugin
pkg:composer/lindemannrock/craft-logging-library
Requires
- php: ^8.2
- craftcms/cms: ^5.0.0
- lindemannrock/craft-plugin-base: ^5.0
- yii2mod/yii2-array-query: ^1.4
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- dev-main
- 5.8.2
- 5.8.1
- 5.8.0
- 5.7.1
- 5.7.0
- 5.6.0
- 5.5.0
- 5.4.0
- 5.3.1
- 5.3.0
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.1
- 5.0.0
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- v1.0.0
- dev-release-please--branches--main
This package is auto-updated.
Last update: 2026-04-05 21:06:01 UTC
README
A reusable logging library for Craft CMS plugins that provides consistent logging, dedicated log files, and a built-in log viewer interface.
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
- 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
- Craft CMS 5.0+
- PHP 8.2+
Installation
Via Composer
composer require lindemannrock/craft-logging-library
php craft plugin/install logging-library
Using DDEV
ddev composer require lindemannrock/craft-logging-library
ddev craft plugin/install logging-library
Documentation
Full documentation is available in the docs folder.
Support
- Issues: GitHub Issues
- Email: support@lindemannrock.com
License
This plugin is licensed under the MIT License. See LICENSE for details.
Developed by LindemannRock