Monolog Handler for different kinds of logging

Code
<?php

use Monolog\Logger;
use 
Monolog\Handler\StreamHandler;

$logFile '/tmp/prod.log';

$handlers = [
    new 
StreamHandler($logFileLogger::WARNING),
];

$log = new Logger('name'$handlers);

$log->warning('Foo');
$log->error('Bar');

echo 
file_get_contents($logFile);
Result
[2017-04-25 22:24:56] name.WARNING: Foo [] []
[2017-04-25 22:24:56] name.ERROR: Bar [] []
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6