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

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

grizz-it/log
============

A standard implementation of a logger.

1.1.0(5y ago)1301MITPHPPHP ^8.0

Since Nov 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grizz-it/log)[ Packagist](https://packagist.org/packages/grizz-it/log)[ RSS](/packages/grizz-it-log/feed)WikiDiscussions master Synced today

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

[![Build Status](https://camo.githubusercontent.com/a884604e95c9c89b5708b151623c853216db62913d4cecf5c0ad2c2dcd562f1d/68747470733a2f2f7472617669732d63692e636f6d2f6772697a7a2d69742f6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/grizz-it/log)

GrizzIT Log
===========

[](#grizzit-log)

This package contains an implementation of the `php-unified/log` standard using the `grizz-it/vfs` package. The logger create single line entries in a file based on the log level.

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

[](#installation)

To install the package run the following command:

```
composer require grizz-it/log

```

Usage
-----

[](#usage)

### Formatters

[](#formatters)

The formatters are used to format logs. This package makes two formatters available. The formatters are described by the [LogFormatterInterface](src/Common/LogFormatterInterface.php)

#### [JsonFormatter](src/Component/Formatter/JsonFormatter.php)

[](#jsonformatter)

The JSON formatter makes a JSON string of the log information, so it can be picked up by external systems.

```
{"level":"info","message":"foo","timestamp":"2020-11-11 21:56:46.201300","exception":"Exception in...
```

#### [PlainFormatter](src/Component/Formatter/PlainFormatter.php)

[](#plainformatter)

The plain formatter makes a simple, readable string as a log entry.

```
[INFO] 2020-11-11 21:54:58.750400 foo Array ( [exception] => Exception in /...

```

### Loggers

[](#loggers)

The package provides two loggers.

#### [ConfigurableTransitLogger](src/Component/Logger/ConfigurableTransitLogger.php)

[](#configurabletransitlogger)

This is a transit logger that can be used to prevent certain log levels from being emitted. The log levels can be disabled through the constructor parameters. After that, additional loggers (that perform the actual logging) can be added by providing them to the `addLogger` method.

#### [FileSystemLogger](src/Component/Logger/FileSystemLogger.php)

[](#filesystemlogger)

The file system logger is a logger that uses `grizz-it/vfs` to store the logs. The file is determined based on the log level. So all `info` logs are being stored in the `info.log` file, all `emergency` logs are stored in `emergency.log`, etc..

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

MIT License
-----------

[](#mit-license)

Copyright (c) GrizzIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

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

Total

2

Last Release

1955d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.1.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8682881?v=4)[GrizzIT](/maintainers/GrizzIT)[@grizzit](https://github.com/grizzit)

---

Top Contributors

[![mfrankruijter](https://avatars.githubusercontent.com/u/8653925?v=4)](https://github.com/mfrankruijter "mfrankruijter (2 commits)")

---

Tags

logloggingphploglogging

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

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

21.4k1.0B8.2k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k262.9M1.8k](/packages/symfony-monolog-bundle)[sentry/sentry

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

1.9k247.1M335](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k127.1M203](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k15.4M79](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327139.0M166](/packages/sentry-sdk)

PHPackages © 2026

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