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

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

artarts36/context-logger
========================

0.1.0(3y ago)0571PHPPHP ^8.1

Since May 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ArtARTs36/php-context-logger)[ Packagist](https://packagist.org/packages/artarts36/context-logger)[ RSS](/packages/artarts36-context-logger/feed)WikiDiscussions master Synced 2d ago

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

Context Logger
==============

[](#context-logger)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Latest Version](https://camo.githubusercontent.com/b139446fadf8b2ffd2ae10fe28466d36b70971f9e132597fc7ffb30e4f172f5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6172746172747333362f7068702d636f6e746578742d6c6f67676572)](https://camo.githubusercontent.com/b139446fadf8b2ffd2ae10fe28466d36b70971f9e132597fc7ffb30e4f172f5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6172746172747333362f7068702d636f6e746578742d6c6f67676572)[![Total Downloads](https://camo.githubusercontent.com/ea8b8f7b976cd6a640921cb4376d1c4432522be79d0adca7f5c6c62b08c8fcc8/68747470733a2f2f706f7365722e707567782e6f72672f6172746172747333362f7068702d636f6e746578742d6c6f676765722f642f746f74616c2e737667)](https://camo.githubusercontent.com/ea8b8f7b976cd6a640921cb4376d1c4432522be79d0adca7f5c6c62b08c8fcc8/68747470733a2f2f706f7365722e707567782e6f72672f6172746172747333362f7068702d636f6e746578742d6c6f676765722f642f746f74616c2e737667)

This package provides wrapper to **psr/log** for sharing context between different logs.

Implemented stores
------------------

[](#implemented-stores)

### Memory Store

[](#memory-store)

Memory Store could be useful for sharing context in single web request or single console command running.

Creating an logger instance:

```
$logger = \ArtARTs36\ContextLogger\LoggerFactory::wrapInMemory(new class () extends \Psr\Log\AbstractLogger {
    public function log($level, \Stringable|string $message, array $context = []): void
    {
        var_dump($level, $message, $context);
    }
});
```

### Apcu Store

[](#apcu-store)

Memory Store could be useful for sharing context for different web requests.

Creating an logger instance:

```
$logger = \ArtARTs36\ContextLogger\LoggerFactory::wrapInApcu(new class () extends \Psr\Log\AbstractLogger {
    public function log($level, \Stringable|string $message, array $context = []): void
    {
        var_dump($level, $message, $context);
    }
});
```

### File Store

[](#file-store)

File Store could be useful for sharing context for different web requests or different console command runs.

Creating an logger instance:

```
$logger = \ArtARTs36\ContextLogger\LoggerFactory::wrapInFile(new class () extends \Psr\Log\AbstractLogger {
    public function log($level, \Stringable|string $message, array $context = []): void
    {
        var_dump($level, $message, $context);
    }
}, '/path/to/file.txt');
```

### Null Store

[](#null-store)

Null Store could be useful for tests.

Creating an logger instance:

```
$logger = \ArtARTs36\ContextLogger\LoggerFactory::null();
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

1140d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8027278?v=4)[Artem Ukrainskii](/maintainers/ArtARTs36)[@ArtARTs36](https://github.com/ArtARTs36)

---

Top Contributors

[![ArtARTs36](https://avatars.githubusercontent.com/u/8027278?v=4)](https://github.com/ArtARTs36 "ArtARTs36 (34 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sentry/sentry

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

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

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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