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

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

itorso/logger
=============

PHP easy logger helper

042PHP

Since Jan 29Pushed 8y agoCompare

[ Source](https://github.com/itorso/php-logger)[ Packagist](https://packagist.org/packages/itorso/logger)[ RSS](/packages/itorso-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP easy logger helper
======================

[](#php-easy-logger-helper)

Basic logger to log string, array and PHP class.

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

[](#installation)

Download logger as composer package:

```
$ composer require itorso/logger
```

Example Usage
-------------

[](#example-usage)

```
$logger = new Logger\Logger();
$logger->debug('It works!');
```

It will output a log file like `/var/log/log.log`

```
$logger = new Logger\Logger('custom_log');
$logger->error('Something goes wrong...');
```

It will output a log file like `/var/log/custom_log.log`

```
$myArr = ['1','2','x' => 'y'];
$logger = new Logger\Logger();
$logger->info($myArr);
```

It will output the beautify version of the array in the log file

```
$myInstance = new MyClass();
$logger = new Logger\Logger();
$logger->info($myInstance);
```

It will output the beautify version of all the methods available for that class

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/824ac1a5a524a70aeb38db8b26bfd155dfc17d9ecdd1f8ecfde7ef05fd7a1acd?d=identicon)[i.torso](/maintainers/i.torso)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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