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

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

ozh/log
=======

Simple PSR-3 logger to log messages into an array

v1.0(8y ago)029MITPHPPHP &gt;=5.3

Since Aug 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ozh/log)[ Packagist](https://packagist.org/packages/ozh/log)[ Docs](https://github.com/ozh/log)[ RSS](/packages/ozh-log/feed)WikiDiscussions master Synced 3w ago

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

Ozh\\Log
========

[](#ozhlog)

A minimalist PSR-3 compliant logger, that logs into an array.

[![Latest Version on Packagist](https://camo.githubusercontent.com/3829844587ddc1812667e2e6ef25519fcb8f60808f5ad9b73d9e4cb799c91a88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7a682f6c6f672e737667)](https://packagist.org/packages/ozh/log)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0187039b81f07fb09c75f3db27ff9b0b48d6794ec7af6c7b23bfa180b3780e28/68747470733a2f2f7472617669732d63692e6f72672f6f7a682f6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ozh/log)[![Code Coverage](https://camo.githubusercontent.com/4e8878bcbcbff334326e0c33968a2d8905e9d0f356134522ae65fca7631e875c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f7a682f6c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ozh/log/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9a4f52c551a49d6b36ad7f5faa2e3cfac675ab3e9d6ca20ca8ee39a78ae5a55e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f7a682f6c6f672f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/ozh/log/?branch=master)

Install
-------

[](#install)

Via Composer

```
$ composer require ozh/log
```

Usage
-----

[](#usage)

```
use \Ozh\Log\Logger;

require '../vendor/autoload.php';

$logger = new Logger();
$logger->debug('This is a debug message');
```

See `examples/examples.php` for more examples.

This library is fully tested on PHP 5.3 to 7.2 and HHVM.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3241d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/223647?v=4)[྅༻ Ǭɀħ ༄༆ཉ](/maintainers/ozh)[@ozh](https://github.com/ozh)

---

Top Contributors

[![ozh](https://avatars.githubusercontent.com/u/223647?v=4)](https://github.com/ozh "ozh (13 commits)")

---

Tags

arraylogloggerlogginglogging-librarypsr-3logpsr-3PSR3ozh

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k1.0B8.1k](/packages/monolog-monolog)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M330](/packages/sentry-sentry)[analog/analog

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

3511.6M24](/packages/analog-analog)[pagemachine/typo3-formlog

Form log for TYPO3

23238.6k8](/packages/pagemachine-typo3-formlog)[markrogoyski/simplelog-php

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

2819.3k4](/packages/markrogoyski-simplelog-php)[alexandre-daubois/monolog-processor-collection

A collection of Monolog processors

1317.1k](/packages/alexandre-daubois-monolog-processor-collection)

PHPackages © 2026

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