PHPackages                             slam/zend-log-extensions - 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. slam/zend-log-extensions

Abandoned → [slam/laminas-log-extensions](/?search=slam%2Flaminas-log-extensions)ArchivedLibrary

slam/zend-log-extensions
========================

Slam extensions for zendframework/zend-log

v1.0.1(8y ago)01.2k↓100%MITPHPPHP ^7.1

Since Sep 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Slamdunk/zend-log-extensions)[ Packagist](https://packagist.org/packages/slam/zend-log-extensions)[ RSS](/packages/slam-zend-log-extensions/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [Slamdunk/laminas-log-extensions](https://github.com/Slamdunk/laminas-log-extensions).

Slam Zend\\Log extensions
=========================

[](#slam-zendlog-extensions)

[![Build Status](https://camo.githubusercontent.com/b1e9398857973812f822f92abd528fc29ef9c1117c635275c218db11635081b4/68747470733a2f2f7472617669732d63692e6f72672f536c616d64756e6b2f7a656e642d6c6f672d657874656e73696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Slamdunk/zend-log-extensions)[![Code Coverage](https://camo.githubusercontent.com/ba853ec790b93d1d28d903fd610eaedd17b9eecf7dae0209e91ed590fc30137c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f536c616d64756e6b2f7a656e642d6c6f672d657874656e73696f6e732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Slamdunk/zend-log-extensions/?branch=master)[![Packagist](https://camo.githubusercontent.com/e74af95cf9a3d3ec4d10712b3980e9f372e2bf66a1b301c9e10e814ed340ac53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c616d2f7a656e642d6c6f672d657874656e73696f6e732e737667)](https://packagist.org/packages/slam/zend-log-extensions)

Extensions for [Zend\\Log](https://github.com/zendframework/zend-log)

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

[](#installation)

Execute:

`composer require slam/zend-log-extensions`

Usage
-----

[](#usage)

The main functionality of this package is the RotateStream writer. PHP cannot handle files larger than 2 GB, so if you log a lot you can end up losing some if you reach this limit.

`Slam\Zend\Log\Writer\RotateStream` rotates the write when it reaches ~1.5 GB.

```
use Slam\Zend\Log\Writer\RotateStream;
use Zend\Log\Formatter\Simple;
use Zend\Log\Logger;

$writer = new RotateStream(__DIR__ . '/log.txt');
$writer->setFormatter(new Simple());

// Do the check everytime, defaults to once every 100000 log entries
$writer->setCheckProbability(1);
// 10 bytes max file size, defaults to ~1.5 GB
$writer->setMaxFileSize(10);

$logger = new Logger();
$logger->addWriter($writer);

for ($i = 0; $i < 10; ++$i) {
    $logger->info($i);
    sleep(1);
}
```

This is what you'll find in the directory:

```
$ ls log.txt*
log.txt  log.txt.1  log.txt.2  log.txt.3  log.txt.4  log.txt.5  log.txt.6  log.txt.7  log.txt.8  log.txt.9

$ cat log.txt.9
2017-09-05T11:08:46+02:00 INFO (6): 8
2017-09-05T11:08:47+02:00 NOTICE (5): LOG ROTATE

$ cat log.txt
2017-09-05T11:08:47+02:00 INFO (6): 9

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~125 days

Total

2

Last Release

3043d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.0.1PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50348?v=4)[Sahn Lam](/maintainers/Slam)[@slam](https://github.com/slam)

---

Top Contributors

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

---

Tags

log-rotationzend-frameworkzend-log

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/slam-zend-log-extensions/health.svg)

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

###  Alternatives

[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[mpociot/phpws

WebSocket Server and Client library for PHP

28254.3k6](/packages/mpociot-phpws)[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)[jhuet/zdt-logger-module

A ZF3 module to log data using Zend\\Log and write them to ZendDeveloperTools toolbar.

1765.6k4](/packages/jhuet-zdt-logger-module)

PHPackages © 2026

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