PHPackages                             codemix/yii2-streamlog - 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. codemix/yii2-streamlog

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

codemix/yii2-streamlog
======================

A Yii 2 log target for streams in URL format

1.3.1(6y ago)531.4M—1.3%7[1 PRs](https://github.com/codemix/yii2-streamlog/pulls)6MITPHP

Since Mar 5Pushed 4y ago7 watchersCompare

[ Source](https://github.com/codemix/yii2-streamlog)[ Packagist](https://packagist.org/packages/codemix/yii2-streamlog)[ RSS](/packages/codemix-yii2-streamlog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (8)Used By (6)

Yii2 Streamlog
==============

[](#yii2-streamlog)

[![Latest Stable Version](https://camo.githubusercontent.com/c363b63e1010f9db111162b6136bedd8390d08206ddf8a7a977c2213b8e1dfa4/68747470733a2f2f706f7365722e707567782e6f72672f636f64656d69782f796969322d73747265616d6c6f672f762f737461626c652e737667)](https://packagist.org/packages/codemix/yii2-streamlog)[![Total Downloads](https://camo.githubusercontent.com/9658ed4fb6835b72b5ce8c696b1c06ad12d81729e225b8fa069f39c577521aba/68747470733a2f2f706f7365722e707567782e6f72672f636f64656d69782f796969322d73747265616d6c6f672f646f776e6c6f616473)](https://packagist.org/packages/codemix/yii2-streamlog)[![License](https://camo.githubusercontent.com/b365fee0b2a1940255963a3ba7a08ec7f7c22716b60b46f02fb5060c1ce19109/68747470733a2f2f706f7365722e707567782e6f72672f636f64656d69782f796969322d73747265616d6c6f672f6c6963656e73652e737667)](https://packagist.org/packages/codemix/yii2-streamlog)

A Yii 2 log target for streams in URL format.

This log target allows you to log to any of the URL like targets that are [supported by PHP](http://php.net/manual/en/wrappers.php). Typical use cases are docker containers that often log to `STDOUT` and `STDERR`, in which case the target urls would be `php://stdout` and `php://stderr` respectively.

It's also possible to use an already opened resource or one of PHP's [predefined resource constants](http://php.net/manual/en/features.commandline.io-streams.php)(only available in CLI context). See the `$fp` option below.

Installation and Configuration
------------------------------

[](#installation-and-configuration)

Install the package through [composer](http://getcomposer.org):

```
composer require codemix/yii2-streamlog

```

And then add this to your application configuration:

```
