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

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

unax/logger
===========

Logger with eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).

1.1.0(5y ago)0571GPL-3.0-onlyPHPPHP &gt;=7.0

Since Apr 5Pushed 5y agoCompare

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

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

[![PHP PSR Enforcer](https://github.com/unax-org/logger/actions/workflows/phpcs.yml/badge.svg)](https://github.com/unax-org/logger/actions/workflows/phpcs.yml)[![Logger Release](https://github.com/unax-org/logger/actions/workflows/release.yml/badge.svg)](https://github.com/unax-org/logger/actions/workflows/release.yml)

Unax Logger
===========

[](#unax-logger)

DefaultLogger class is available for logging. The DefaultLogger includes eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).

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

[](#example-usage)

```
require(__DIR__ . '/vendor/autoload.php');

\Unax\Logger\LogHandlerFile::setLogHandlerFile(__DIR__ . '/debug.log');
\Unax\Logger\Logger::setLogThreshold('info');

$logger = \Unax\Logger\Logger::getLogger();
$logger->info('Hello World!');

```

Default log destination is PHP error\_log() destination. Default logging threshold is 'error'. Everything below treshold will be skipped.

Support
-------

[](#support)

Unax Logger is supported by Unax. Comments are welcome on .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

1869d ago

### Community

Maintainers

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

---

Top Contributors

[![atanasantonov](https://avatars.githubusercontent.com/u/29710963?v=4)](https://github.com/atanasantonov "atanasantonov (19 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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