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 3w 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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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

1915d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1182664?v=4)[NAnt](/maintainers/nant)[@nant](https://github.com/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.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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