StreamTarget sends log messages to the php stream wrappers.
Converts an arrays and objects to strings using Json::encode().
[
'targets' => [
[
'class' => 'consultnn\streamTarget\StreamTarget',
'levels' => ['error', 'warning'],
'stream' => 'php://stderr',
'except' => ['yii\web\HttpException:404']
],
[
'class' => 'consultnn\streamTarget\StreamTarget',
'levels' => ['info'],
'stream' => 'php://stdout',
]
]
]