PHPackages                             pendenga/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. pendenga/log

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

pendenga/log
============

Utilities for using psr/loggers in dev

0.1.1(5y ago)0582MITPHPPHP &gt;=7.1.0

Since Mar 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pendenga/log)[ Packagist](https://packagist.org/packages/pendenga/log)[ RSS](/packages/pendenga-log/feed)WikiDiscussions master Synced 5d ago

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

Pendenga's PSR Logger for Dev
=============================

[](#pendengas-psr-logger-for-dev)

Use EchoLogger in dev areas to just echo all the log output. I found myself writing this class over and over in my dev work, so I thought I'd just standardize it for inclusion as a package.

NOTE: This is not recommended for production use.

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

[](#installation)

This package is hosted on packagist and is installable via [Composer](https://getcomposer.org/).

### Requirements

[](#requirements)

- PHP version 7.1 or greater
- Composer (for installation)

### Installing Via Composer

[](#installing-via-composer)

Run the following:

```
$ composer require --dev pendenga/log
```

Or add the following lines to your composer.json file...

```
"require-dev": {
  "pendenga/log": "0.1.0",
},
```

and run the following command (assuming `composer` is available in your PATH):

```
$ composer update
```

When bootstrapping your application, you will need to require `'vendor/autoload.php'` in order to setup autoloading.

Usage
-----

[](#usage)

### Code

[](#code)

You can choose the minimum log level to start with, if you don't need all the debug output. This example tries out two different minimum log levels.

```
