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

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

thruster/logger-wrap
====================

Thruster LoggerWrap Component wraps LoggerInterface and provides LoggerInterface with optional logging

1.0.0(7y ago)05MITPHPPHP &gt;=7.3

Since May 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ThrusterIO/logger-wrap)[ Packagist](https://packagist.org/packages/thruster/logger-wrap)[ Docs](https://github.com/ThrusterIO/logger-wrap)[ RSS](/packages/thruster-logger-wrap/feed)WikiDiscussions master Synced 2d ago

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

LoggerWrap
==========

[](#loggerwrap)

[![Latest Version on Packagist](https://camo.githubusercontent.com/69c9652e07836d9bdddb30ca6e8f9a23b41367e2dcd9923fc0d9c92a45fd776e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f5468727573746572494f2f6c6f676765722d777261702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thruster/logger-wrap)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/f2e9cca4b9ad84856e8256fdf39e3398b811422905a46c3dd18fe094e4a12380/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f6c6f676765722d777261702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ThrusterIO/logger-wrap)[![Coverage Status](https://camo.githubusercontent.com/252c4bd2d7054d6d02cc3f06c7f245cdfd91266405ccce58057cf68563dd1991/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f6c6f676765722d777261702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ThrusterIO/logger-wrap/code-structure)[![Quality Score](https://camo.githubusercontent.com/6b45accc3b8af1ea9b84273aef40dbf2effee6e4a913fb2b3226da5ef6a38608/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f6c6f676765722d777261702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ThrusterIO/logger-wrap)[![Total Downloads](https://camo.githubusercontent.com/295414b7c81e4fdc3d0b0629bd2b1a2e2aa17a8a6c45463d91895550790d43d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f6c6f676765722d777261702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thruster/logger-wrap)

Thruster LoggerWrap Component wraps LoggerInterface and provides LoggerInterface with optional logging

Install
-------

[](#install)

Via Composer

```
$ composer require thruster/logger-wrap
```

Usage
-----

[](#usage)

Simple wrap your LoggerInterface object or not to enable/disable logging without bunch of if conditions around.

```
$logger = new Logger();
$wrappedLogger = new LoggerWrap($logger);

$wrappedLogger->info('Foo Bar'); // Will call $logger->info('Foo Bar');
```

Or not pass logger to disable logging

```
$wrappedLogger = new LoggerWrap();

$wrappedLogger->info('Foo Bar'); // Will not call anything
```

Testing
-------

[](#testing)

Run test cases

```
$ composer test
```

Run test cases with coverage (HTML format)

```
$ composer test-coverage
```

Run PHP style checker

```
$ composer check-style
```

Run PHP style fixer

```
$ composer fix-style
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

License
-------

[](#license)

Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

2569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/770bae1f46ac2b4536db820b8642491c25e2e2fd44e761110269e4722679a80d?d=identicon)[aurimasniekis](/maintainers/aurimasniekis)

---

Tags

psr-3loggerthrusterlogger-wrap

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[bref/logger

All you need to log with Bref on AWS Lambda

331.5M8](/packages/bref-logger)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)[wa72/simplelogger

Wa72SimpleLogger is a collection of very simple loggers implementing \\Psr\\Log\\LoggerInterface (PSR-3)

13246.6k13](/packages/wa72-simplelogger)

PHPackages © 2026

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