PHPackages                             micronext/php-std-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. micronext/php-std-logger

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

micronext/php-std-logger
========================

Simple PHP Logger library that output data to console's stdout/stderr in depends of LogLevel. Implements interfaces defined by PSR-3

1.0.4(7y ago)123MITPHPPHP &gt;=7.1.0

Since Nov 1Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

PHP StdOut Logger for CLI Apps.
===============================

[](#php-stdout-logger-for-cli-apps)

**Purpose:** App Logs outputs to **stdout/stderr** according to **LogLevel** and in **user-defined** format. **IN RUNTIME**!
----------------------------------------------------------------------------------------------------------------------------

[](#purpose-app-logs-outputs-to-stdoutstderr-according-to-loglevel-and-in-user-defined-format-in-runtime)

> And for the hail of Satan, of cource 😈

**Motivation:** Its might be very helpful for 🐳 Docker fans
-----------------------------------------------------------

[](#motivation-its-might-be-very-helpful-for--docker-fans)

> Designed as simple as possible, following [php-fig](https://www.php-fig.org) PSR's and [codestyle](https://en.wikipedia.org/wiki/Programming_style) tools

⚠️ WARNING! Today it's for `PHP_CLI` mode only!
-----------------------------------------------

[](#️-warning-today-its-for-php_cli-mode-only)

### Tiny and *simple-first* **PHP Logger** library that output data to console's `stdout`/`stderr` in depends of `LogLevel`.

[](#tiny-and-simple-first-php-logger-library-that-output-data-to-consoles-stdoutstderr-in-depends-of-loglevel)

### Implements interfaces defined by [PSR-3](https://www.php-fig.org/psr/psr-3/).

[](#implements-interfaces-defined-by-psr-3)

Install
-------

[](#install)

```
composer require micronext/php-std-logger
```

Development
-----------

[](#development)

Clone this repo

```
git clone https://github.com/micronext/php-std-logger
cd php-std-logger
composer install
```

Usage:
------

[](#usage)

```
