PHPackages                             bytic/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. bytic/logger

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

bytic/logger
============

Logger component for bytic

2.0.3(2w ago)07.0k5PHPPHP ^8.3

Since Sep 13Pushed 2w ago1 watchersCompare

[ Source](https://github.com/bytic/logger)[ Packagist](https://packagist.org/packages/bytic/logger)[ RSS](/packages/bytic-logger/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (28)Versions (29)Used By (5)

Logger
======

[](#logger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cf6814315343999639f75b7a4023be9bb7a03bbdc647e1cfe489f4c9bcd31d43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62797469632f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bytic/logger)[![Latest Stable Version](https://camo.githubusercontent.com/389e8b7b950dd46f8cdd075c18e9145f661668ceddde15a778d573627ee70e71/68747470733a2f2f706f7365722e707567782e6f72672f62797469632f6c6f676765722f762f737461626c65)](https://packagist.org/packages/bytic/logger)[![Latest Unstable Version](https://camo.githubusercontent.com/7ef387c770abd0caa0bfeb49a4a36b404534a27313d6185af5ea7758679e2d0a/68747470733a2f2f706f7365722e707567782e6f72672f62797469632f6c6f676765722f762f756e737461626c65)](https://packagist.org/packages/bytic/logger)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/7c830208db9398c32bd41fff22ea299db3a839d4cecdf3d6b0f8499ce2a001f5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62797469632f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bytic/logger)[![Total Downloads](https://camo.githubusercontent.com/725be231cbcf325688327503974b33d25461dafbb87ba804e329a9d3ac845c71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62797469632f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bytic/logger)

A PSR-3 logger component for bytic applications, built on top of [Monolog](https://github.com/Seldaek/monolog).

**Requires PHP 8.3+**

---

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

[](#installation)

```
composer require bytic/logger
```

---

Usage
-----

[](#usage)

Register the `LoggerServiceProvider` in your application bootstrap:

```
$container->addServiceProvider(new \Nip\Logger\LoggerServiceProvider());
```

The provider registers `log` and `Psr\Log\LoggerInterface` into the container.

---

Error Level Routing
-------------------

[](#error-level-routing)

PHP native errors (warnings, notices, deprecations) are converted to PSR-3 log entries by the `bytic/debug` `ErrorHandler`. Version 2.x uses `\Nip\Logger\ErrorHandler\PhpErrorLevelMapper` to map each `E_*` constant to the appropriate PSR-3 level:

PHP Error TypePSR-3 Level`E_WARNING``warning``E_USER_WARNING``warning``E_CORE_WARNING``warning``E_COMPILE_WARNING``warning``E_NOTICE``notice``E_USER_NOTICE``notice``E_DEPRECATED``info``E_USER_DEPRECATED``info``E_ERROR``error``E_USER_ERROR``error``E_RECOVERABLE_ERROR``error``E_PARSE``critical``E_CORE_ERROR``critical``E_COMPILE_ERROR``critical``E_STRICT``debug`This replaces the previous behaviour where warnings and notices were incorrectly logged at ERROR level.

---

Migration Notes
---------------

[](#migration-notes)

When upgrading from 1.x:

- `Logger::getFormatter()` and `Logger::format()` have been removed. Message formatting is now handled exclusively by Monolog's `LineFormatter`.
- Inject `Psr\Log\LoggerInterface` via constructor injection instead of `$container->get('log')` where possible.

---

Inspiration
-----------

[](#inspiration)

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance97

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 86.5% 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 ~118 days

Total

25

Last Release

15d ago

Major Versions

0.9.2 → 1.0.12020-04-23

0.9.3 → 1.0.22020-05-02

0.9.4 → 1.0.32020-05-03

0.9.6 → 1.0.42020-05-03

1.0.x-dev → 2.0.02026-04-13

PHP version history (3 changes)0.9.0PHP ^7.0

1.0.9PHP ^7.0|^8.0

2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee4d69e72d2a9819fbbb63e3d81c904273f04bbcce9e0105c0f40fba73ef73d?d=identicon)[gabrielsolomon](/maintainers/gabrielsolomon)

---

Top Contributors

[![gabrielsolomon](https://avatars.githubusercontent.com/u/17990591?v=4)](https://github.com/gabrielsolomon "gabrielsolomon (32 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bytic-logger/health.svg)

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M356](/packages/symfony-monolog-bridge)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)

PHPackages © 2026

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