PHPackages                             arrilot/logs - 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. arrilot/logs

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

arrilot/logs
============

0.1(8y ago)21.5k↓100%MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 8y agoCompare

[ Source](https://github.com/arrilot/logs)[ Packagist](https://packagist.org/packages/arrilot/logs)[ Docs](https://github.com/arrilot/logs)[ RSS](/packages/arrilot-logs/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/ca066a5d3985940938cefa0bce5813ec9be54cc0923621df75e350a22e31f3de/68747470733a2f2f706f7365722e707567782e6f72672f617272696c6f742f6c6f67732f762f737461626c652e737667)](https://packagist.org/packages/arrilot/logs/)[![Total Downloads](https://camo.githubusercontent.com/5554ae878ae7e43428495f25075d9cd083d39c0f5a6d274a3ca3238a777052fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617272696c6f742f6c6f67732e7376673f7374796c653d666c6174)](https://packagist.org/packages/Arrilot/logs)[![Build Status](https://camo.githubusercontent.com/231cbcf42e1551b371929518bb7441353897102acb71fbeae5920d46611b1b0e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617272696c6f742f6c6f67732f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/arrilot/logs)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/67f71c41193229ed5cfad8516eec0dd4731ef8beaf999476276370011c3bea4a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617272696c6f742f6c6f67732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/arrilot/logs/)

Simple trait that makes any class able to use PSR-3 loggers.
============================================================

[](#simple-trait-that-makes-any-class-able-to-use-psr-3-loggers)

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

[](#installation)

`composer require arrilot/logs`

Usage
-----

[](#usage)

```
use Arrilot\Logs\Logs;

class Foo
{
    use Logs;

    function bar()
    {
        $this->logger()->error('Error happened in bar!);
        $this->logger()->warning('Warning happened in bar!);
        // etc
    }
}

$foo = new Foo();
$foo->bar(); // Everything is ok, but nothing was logged anywhere because no logger was set.

$foo->setLogger($anyPsr3LoggerHere);
$foo->bar(); // There is a log record in $anyPsr3LoggerHere now.

$foo->setEchoLogger();
$foo->bar(); // An error and a warning are echo'ed to a screen.

// If you are using Monolog\Registry to store loggers, you can simply pass a logger name and the package will grab a logger from the Registry.
$foo->setLogger('application_log');
$foo->bar(); // There is a record in application log.
```

You can also use `Arrilot\Logs\EchoLogger` as a separate PSR-3 logger without a trait.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

3226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58d505cd6b2551974b0c076d133fd9a3c9cd635bbf308adb17a6399bd3b63232?d=identicon)[Arrilot](/maintainers/Arrilot)

---

Top Contributors

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

---

Tags

logsPSR3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arrilot-logs/health.svg)

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[devthis/console-logg

Effortless artisan console output with your usual Laravel logger

1112.7k](/packages/devthis-console-logg)

PHPackages © 2026

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