PHPackages                             gamernetwork/yolk-log - 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. gamernetwork/yolk-log

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

gamernetwork/yolk-log
=====================

Gamer Network's PHP logging component

v1.0(10y ago)08.3k1MITPHPPHP &gt;=5.4.0

Since Jul 24Pushed 10y ago9 watchersCompare

[ Source](https://github.com/gamernetwork/yolk-log)[ Packagist](https://packagist.org/packages/gamernetwork/yolk-log)[ RSS](/packages/gamernetwork-yolk-log/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Want to work for Gamer Network? [We are hiring!](http://www.gamesindustry.biz/jobs/gamer-network)

Yolk Logger
===========

[](#yolk-logger)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bbae2afbb3b8ec434f0b9504436ad9b8b92e3ac48c76beeddadc9a3f9e0e7969/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67616d65726e6574776f726b2f796f6c6b2d6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/gamernetwork/yolk-log/?branch=develop)

A simple [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) logging library with support for the following outputs:

- PHP error log
- Files
- Null
- Stdout (CLI only)
- Stderr (CLI only)
- Syslog

Requirements
------------

[](#requirements)

This library requires PHP 5.4 or later, the Yolk Contracts package (`gamernetwork/yolk-contracts`) and the PSR-3 reference logger (`psr/log`).

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

[](#installation)

It is installable and autoloadable via Composer as `gamer-network/yolk-logger`.

Alternatively, download a release or clone this repository, and add the `\yolk\log` and `\Psr\Log` namespaces to an autoloader.

License
-------

[](#license)

Yolk Logger is open-sourced software licensed under the MIT license.

Quick Start
-----------

[](#quick-start)

```
use yolk\log\LogLevel;

// create a factory
$f = new LoggerFactory();

// create some simple logs with default threshold (INFO)
$l = $f->create('php');
$l = $f->create('stderr');
$l = $f->create('stdout');
$l = $f->create('null');

// specify configuration options
$l = $f->create([
	'type' => 'file'
	'file' => '/var/log/php/myapp.log'
]);

$l = $f->create([
	'type'   => 'syslog'
	'prefix' => 'myapp'
]);

// specify a threshold
$l = $f->create([
	'type'      => 'stderr',
	'threshold' => LogLevel::INFO,
]);

// simple message
$l->warning('Ooops! Something went wrong');

// message with context
$l->info(
	"{user} logged in at {time}",
	[
		'user' => 'Gary',
		'time' => '2014-10-02 12:34:56',
	]
);
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

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

Unknown

Total

1

Last Release

3949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2658e540902cbc1f59ec171e1b74515fb9e7c3a1e194e37e9c37f27ae400e4b4?d=identicon)[gamer-network](/maintainers/gamer-network)

---

Top Contributors

[![simon-downes](https://avatars.githubusercontent.com/u/1052903?v=4)](https://github.com/simon-downes "simon-downes (7 commits)")

---

Tags

loggingloggereurogamergamer network

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gamernetwork-yolk-log/health.svg)

```
[![Health](https://phpackages.com/badges/gamernetwork-yolk-log/health.svg)](https://phpackages.com/packages/gamernetwork-yolk-log)
```

###  Alternatives

[analog/analog

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

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

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