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

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

gregoryv/php-logger
===================

Basic logging for php

0.1.3(4y ago)01.2kMITPHP

Since May 10Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (0)

ARCHIVED! Moved to

[![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=gregoryv&url=https%3A%2F%2Fgithub.com%2Fgregoryv%2Fphp-logger&title=php-logger&language=php&tags=github&category=software)

- [API reference](http://gregoryv.github.io/php-logger/api/namespace-gregoryv.logger.html)
- [Example](ExampleUsage.php)

README
======

[](#readme)

Logger module for basic intuitive logging in php. Severity levels are based on those for *syslog* found in [RFC5424](http://tools.ietf.org/html/rfc5424). This module is a starting point from which you can evolve your logging needs as your system grows. The simplest and default way of using it is

```
use gregoryv\logger\Logger;

$log = new Logger();
$log->info('something');

$x = 'something';
$log->debugf('Variable $x=%s', $x);

$log->turn('off debug'); // for this logger only
$log->debug('this will not be written');

$log->turn('off all warn'); // for this and all subsequently created loggers

```

The logger has methods for each severity level defined by [RFC5424 6.2.1](http://tools.ietf.org/html/rfc5424#section-6.2.1). That means you do not care much about where the messages end up initially, which surprisingly, is in the syslog.

[![Design](design.jpg)](design.jpg)

Usage
-----

[](#usage)

Add to your composer.json

```
{
  "require": {
    "gregoryv/php-logger": "*"
  }
}

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance51

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~281 days

Recently: every ~629 days

Total

10

Last Release

1497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b6145be4737d296a8bba9e481136638a2a103068a83e02083c987e873d6d868?d=identicon)[gregoryv](/maintainers/gregoryv)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gregoryv-php-logger/health.svg)](https://phpackages.com/packages/gregoryv-php-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)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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