PHPackages                             communitales/log - 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. communitales/log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

communitales/log
================

Communitales Log Component

3.2.0(2y ago)05.7k↑120%2MITPHPPHP &gt;=8.3CI failing

Since Jan 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/communitales/log)[ Packagist](https://packagist.org/packages/communitales/log)[ Docs](https://www.communitales.com)[ RSS](/packages/communitales-log/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (11)Versions (6)Used By (2)

Communitales Log Component
==========================

[](#communitales-log-component)

Convenient integration for logging of messages and exceptions.

Setup
-----

[](#setup)

Just use the `LogAwareTrait`.

Then set a logger via `$this->setLogger($logger);` or use the `Psr\Log\LoggerAwareInterface` as marker interface to let the Dependency Injection do the magic for you.

Symfony example:

```
services:

    _instanceof:
        Psr\Log\LoggerAwareInterface:
            calls:
                - [setLogger, ['@logger']]

```

Usage
-----

[](#usage)

```

use App\Component\Log\LogAwareTrait;
use Psr\Log\LoggerAwareInterface;
use \RuntimeException;

class SomeClass implements LoggerAwareInterface
{

    use LogAwareTrait;

    public function testLog(): void
    {
        // Log your message including debug information
        $this->log('Test message', LogLevel::DEBUG, ['param1' => 'useful debug information']);

        // Log an error
        $this->log('This should not happen');
    }

    public function testLogException(): void
    {
        try {
            throw new RuntimeException('Something gone wrong');
        } catch (RuntimeException $exception) {

            // Log with one line
            $this->logException($exception);
        }

    }
}

```

Sentry logging out of the box
-----------------------------

[](#sentry-logging-out-of-the-box)

If the `\Sentry\captureException` function is available, exceptions will be logged also to Sentry.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Total

5

Last Release

805d ago

Major Versions

1.0.0 → 2.0.02020-09-24

2.0.0 → 3.0.02021-11-19

PHP version history (5 changes)1.0.0PHP ^7.1.3

2.0.0PHP &gt;=7.4

3.0.0PHP &gt;=8.0

3.1.0PHP &gt;=8.2

3.2.0PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13959863?v=4)[Communitales GmbH](/maintainers/communitales)[@communitales](https://github.com/communitales)

---

Top Contributors

[![sven-communitales](https://avatars.githubusercontent.com/u/13959824?v=4)](https://github.com/sven-communitales "sven-communitales (6 commits)")

---

Tags

logphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/communitales-log/health.svg)

```
[![Health](https://phpackages.com/badges/communitales-log/health.svg)](https://phpackages.com/packages/communitales-log)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M335](/packages/sentry-sentry)[pagemachine/typo3-formlog

Form log for TYPO3

23238.6k8](/packages/pagemachine-typo3-formlog)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1118.1k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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