PHPackages                             nerds-and-company/loghelper - 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. nerds-and-company/loghelper

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

nerds-and-company/loghelper
===========================

Log Helper Plugin for Craft CMS

2.0.3(9y ago)1312.4k2[1 issues](https://github.com/nerds-and-company/loghelper/issues)MITPHP

Since Jan 8Pushed 9y ago3 watchersCompare

[ Source](https://github.com/nerds-and-company/loghelper)[ Packagist](https://packagist.org/packages/nerds-and-company/loghelper)[ RSS](/packages/nerds-and-company-loghelper/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Log Helper plugin for Craft CMS
===============================

[](#log-helper-plugin-for-craft-cms)

Introduction
------------

[](#introduction)

When [logging events and errors](https://craftcms.com/support/logs-and-backups), Craft CMS writes to the `craft/storage/runtime/logs/craft.log.` and `craft/storage/runtime/logs/phperrors.log` files.

This can cause problems on hosting environments that have an ephemeral filesystem (like Heroku, Amazon EC2 and some Docker configurations) as the log files will not be persisted and logging data will get lost.

This plugin adds the ability to Craft CMS to redirect logging output to other sources than the default log files.

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

[](#installation)

This plugin can be installed manually or [using Composer](https://getcomposer.org/doc/00-intro.md).

### Composer

[](#composer)

The preferred means of installation is through Composer:

```
composer require nerds-and-company/loghelper

```

This will add `nerds-and-company/loghelper` as a requirement to your projects `composer.json` file and install the plugin into the `craft/plugins/loghelper` directory.

### Manual

[](#manual)

If installation through Composer is not an option, the package can also be installed manually. Download [the latest release](https://github.com/nerds-and-company/loghelper/releases/latest)or clone the contents of this repository into the `craft/plugins/loghelper`directory.

**Important:**

The plugin's folder **must** be named "loghelper"

Usage
-----

[](#usage)

This plugin offers different types of behaviour that can be configured by editing/adding the `craft/config/logHelper.php` config file.

### Configuration

[](#configuration)

The following settings are available:

#### useFileLog

[](#usefilelog)

Accepts`true` or `false`Default`true`Sincev2.0.0Determines whether logs should be written to file or not. This allows for disabling Craft's default behaviour.

```
'useFileLog' => true,

```

#### useProfileLog

[](#useprofilelog)

Accepts`true` or `false`Default`true`Sincev2.0.0Determines whether or not to displays profiling results in the browser's console window. This allows for disabling Craft's default behaviour.

```
'useProfileLog' => true,

```

#### useStdErrLog

[](#usestderrlog)

Accepts`true` or `false`Default`false`Sincev2.0.0Determines whether logs should be written to STDERR (shell error output stream) or not. Enabling this allows for viewing Craft logs on Heroku (or in tools that persist Heroku logs, like Papertrail).

```
'useStdErrLog' => false,

```

#### useSysLog

[](#usesyslog)

Accepts`true` or `false`Default`false`Sincev2.0.0Determines whether logs should be written to [the system logs](https://en.wikipedia.org/wiki/Syslog) or not. Enabling this allows tools that read from the system logs (like Papertrail when not on Heroku) to persist Craft logs.

```
'useSysLog' => false,

```

#### useWebLog

[](#useweblog)

Accepts`true` or `false`Default`true`Sincev2.0.0Determines whether or not to displays log content in the browser's console window. This allows for disabling Craft's default behaviour.

```
'useWebLog' => true,

```

Screenshots
-----------

[](#screenshots)

### Docker

[](#docker)

[![Docker](https://camo.githubusercontent.com/6d84b84033a24bb55a87b6b45ad6c8b8b734eb70db90663c315a8af93a850edb/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f646f636b65722e706e67)](https://camo.githubusercontent.com/6d84b84033a24bb55a87b6b45ad6c8b8b734eb70db90663c315a8af93a850edb/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f646f636b65722e706e67)

### Heroku

[](#heroku)

[![Heroku](https://camo.githubusercontent.com/9279c56929f7b9b4dc6c41128acd7016b810afda322ff3ca52496981e5e6ff5a/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f6865726f6b752e706e67)](https://camo.githubusercontent.com/9279c56929f7b9b4dc6c41128acd7016b810afda322ff3ca52496981e5e6ff5a/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f6865726f6b752e706e67)

### Papertrail

[](#papertrail)

[![Papertrail](https://camo.githubusercontent.com/c8804e1b6d9514cf83c17157c7f46111a45d5fae40d8435844f9726ab61b55f0/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f7061706572747261696c2e706e67)](https://camo.githubusercontent.com/c8804e1b6d9514cf83c17157c7f46111a45d5fae40d8435844f9726ab61b55f0/687474703a2f2f6e657264732d616e642d636f6d70616e792e6769746875622e696f2f6c6f6768656c7065722f696d616765732f7061706572747261696c2e706e67)

License
-------

[](#license)

This plugin has been licensed under the MIT License (MIT). Please see [License File](LICENSE) for more information.

Changelog
---------

[](#changelog)

### 2.0.3

[](#203)

- Better log processing

### 2.0.2

[](#202)

- Fixed bug with reading default config values

### 2.0.1

[](#201)

- Adds more documentation

### 2.0.0

[](#200)

- Adds support for syslog logging, which is the default for Papertrail (non-Heroku)
- Adds the ability to remove web, file and profile logging
- Improves readability of the logs by appending newlines

### 1.0.0

[](#100)

- Initial release

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~103 days

Total

5

Last Release

3410d ago

Major Versions

1.0.0 → 2.0.02016-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/473941cfd5dd7f9070a5ee2e0c7fe71ef6f9aed74e40cee91cebf77a2392bb27?d=identicon)[nerds-and-company](/maintainers/nerds-and-company)

---

Top Contributors

[![Potherca](https://avatars.githubusercontent.com/u/195757?v=4)](https://github.com/Potherca "Potherca (4 commits)")

### Embed Badge

![Health badge](/badges/nerds-and-company-loghelper/health.svg)

```
[![Health](https://phpackages.com/badges/nerds-and-company-loghelper/health.svg)](https://phpackages.com/packages/nerds-and-company-loghelper)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[stayallive/wp-sentry

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

387211.1k](/packages/stayallive-wp-sentry)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

206.7k](/packages/pressbooks-pressbooks-book)[camspiers/silverstripe-loggerbridge

Provides a bridge between PSR-3 loggers (like monolog) and SilverStripe

1370.1k](/packages/camspiers-silverstripe-loggerbridge)[sandreu/cake-sentry

Sentry error handler plugin for CakePHP2

1640.3k](/packages/sandreu-cake-sentry)

PHPackages © 2026

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