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

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

effectra/log
============

The Effectra Log package.

v1.0.0(3y ago)0251MITPHP

Since Jun 20Pushed 3y agoCompare

[ Source](https://github.com/effectra/log)[ Packagist](https://packagist.org/packages/effectra/log)[ RSS](/packages/effectra-log/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Effectra\\Log
=============

[](#effectralog)

Effectra\\Log is a logging library that provides a simple and flexible way to handle logging in your PHP applications. It implements the [PSR-3 LoggerInterface](https://www.php-fig.org/psr/psr-3/) and includes additional features for log handling.

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

[](#installation)

You can install the Effectra\\Log library via Composer. Run the following command in your project directory:

```
composer require effectra/log

```

Usage
-----

[](#usage)

To use the Effectra\\Log library in your project, follow these steps:

1. Create an instance of the `Logger` class:

    ```
    use Effectra\Log\Logger;

    $logger = new Logger('/path/to/log/file.log');
    ```
2. Start logging messages:

    ```
    $logger->info('This is an informational message.');
    $logger->error('An error occurred.', ['context' => 'additional data']);
    // ...
    ```
3. Customize log levels:

    ```
    use Effectra\Log\LogLevel;

    $logger->log(LogLevel::DEBUG, 'Debug message');
    $logger->log(LogLevel::WARNING, 'Warning message');
    // ...
    ```
4. Set the logger instance on other classes (optional):

    ```
    use Effectra\Log\LoggerAware;
    use Psr\Log\LoggerInterface;

    class MyClass implements LoggerAware
    {
        public function __construct(LoggerInterface $logger)
        {
            $this->setLogger($logger);
        }

        // ...
    }
    ```

For more detailed information on the available methods and features, refer to the code documentation and the [PSR-3 LoggerInterface](https://www.php-fig.org/psr/psr-3/) documentation.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com/effectra/log).

License
-------

[](#license)

The Effectra\\Log library is open-source software released under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

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

---

Tags

logloggingphppsrpsr-3

### Embed Badge

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

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

###  Alternatives

[sentry/sentry

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

1.9k247.1M334](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k52](/packages/ecotone-ecotone)

PHPackages © 2026

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