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

ActiveLibrary

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

0.1.0(2y ago)0561PHPPHP ^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 1mo 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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

1090d 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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[flowwow/cloudpayments-php-client

cloudpayments api client

2188.2k](/packages/flowwow-cloudpayments-php-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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