PHPackages                             gyselroth/php-helper-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. gyselroth/php-helper-log

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

gyselroth/php-helper-log
========================

PHP logger wrapper

0.2.20(5y ago)01.0k1Apache-2.0PHPPHP &gt;=7.4

Since Sep 28Pushed 5y ago2 watchersCompare

[ Source](https://github.com/gyselroth/php-helper-log)[ Packagist](https://packagist.org/packages/gyselroth/php-helper-log)[ Docs](https://gyselroth.com)[ RSS](/packages/gyselroth-php-helper-log/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

gyselroth PHP Logger Helper
===========================

[](#gyselroth-php-logger-helper)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Log-Wrapper](#log-wrapper)
    - [Usage Example 1: Within Slim PHP application](#usage-example-1-within-slim-php-application)
    - [Usage Example 2: Within Zend Framework 1 application](#usage-example-2-within-zend-framework-1-application)
- [Running Tests](#running-tests)
- [Running phpstan](#running-phpstan)
- [Contributing](#contributing)
- [Author and License](#author-and-license)

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

[](#installation)

```
composer require gyselroth/php-helper-zip
```

### Log-Wrapper

[](#log-wrapper)

To allow classes of this helper library to log, using the standard logger of the framework used in the rest of your application, the library includes `Gyselroth\Helper\LogWrapper`. After bootstrapping your application or its service container (if using a framework able of dependency-injection), the host application's logger can be registered with the Logger-Wrapper (skip this step if you do not use the helper library to write any log-entries):

#### Usage Example 1: Within Slim PHP application

[](#usage-example-1-within-slim-php-application)

```
