PHPackages                             leowebguy/simple-logger - 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. leowebguy/simple-logger

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

leowebguy/simple-logger
=======================

Collect brief exceptions and send daily reports

2.0.0(2y ago)11521proprietaryPHPPHP ^8.2

Since Jan 21Pushed 1y ago3 watchersCompare

[ Source](https://github.com/leowebguy/simple-logger)[ Packagist](https://packagist.org/packages/leowebguy/simple-logger)[ RSS](/packages/leowebguy-simple-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (5)Used By (0)

Simple Logger plugin for Craft CMS
==================================

[](#simple-logger-plugin-for-craft-cms)

Plugin for collecting exception handlers logs and reporting over email. A simple solution for those who can't or won't pay for corporate solution loggers like: New Relic, Dynatrace, Datadog and others.

### If you don't receive daily emails, check:

[](#if-you-dont-receive-daily-emails-check)

1. if your email setup is correct
2. if simple logger plugin is active
3. if you have exceptions older than a day in `storage/logs/simplelogger.json`

### Install

[](#install)

```
composer require leowebguy/simple-logger && php craft plugin/install simple-logger
```

### Usage

[](#usage)

Set these two `.env` parameters to make sure Simple Logger is active

```
# Simple Logger
LOGGER_ON=1
LOGGER_EMAIL=john@email.com
```

`LOGGER_EMAIL` accept multiple emails `LOGGER_EMAIL=john@email.com,jane@@email.com`

The plugin will use the built-in craft event `EVENT_BEFORE_HANDLE_EXCEPTION` to handle exceptions, saving into a custom log file `storage/logs/simplelogger.json`

```
[
    {
        "time": "2023-01-21 17:37:21",
        "sourcetype": "Exception 400",
        "level_name": "ERROR",
        "message": "TwigErrorRuntimeError: Calling unknown method: craftwebtwigvariablesCraftVariable::deviceDetect1() in /var/www/html/templates/index.twig:10"
    }
]

```

Using the same event above, Simple Logger will once a day (after 8pm) collect the report and send an email to `LOGGER_EMAIL` defined recipient

[![report](resources/report.png)](resources/report.png)

Simple Logger won't collect `NotFoundHttpException` exceptions, mostly related to inexistent pages or resources

### Feeling creative?

[](#feeling-creative)

PR into

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~143 days

Total

4

Last Release

778d ago

Major Versions

1.0.2 → 2.0.02024-03-27

PHP version history (3 changes)1.0.0PHP ^8.0

1.0.1PHP ^8.0.2

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/44216bb5de0cacbd3d995a1a71c3ee395bd36380305e547ac31452f86d4cd713?d=identicon)[leowebguy](/maintainers/leowebguy)

---

Top Contributors

[![leowebguy](https://avatars.githubusercontent.com/u/8460020?v=4)](https://github.com/leowebguy "leowebguy (8 commits)")[![IvanFloripa](https://avatars.githubusercontent.com/u/6644786?v=4)](https://github.com/IvanFloripa "IvanFloripa (1 commits)")

---

Tags

craft-cmscraft-cms-plugincraft-plugincraft4craft5craftcmspluginexceptionslogsloggerreportcraftcmsmonolog

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/leowebguy-simple-logger/health.svg)

```
[![Health](https://phpackages.com/badges/leowebguy-simple-logger/health.svg)](https://phpackages.com/packages/leowebguy-simple-logger)
```

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[jadb/cakephp-monolog

CakePHP Monolog Plugin

5518.9k](/packages/jadb-cakephp-monolog)[vojtasvoboda/oc-errorlogger-plugin

Sends an error from your OctoberCMS application directly to email, HipChat, Slack, NewRelic and more.

153.3k](/packages/vojtasvoboda-oc-errorlogger-plugin)

PHPackages © 2026

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