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
[2019-09-16 06:56:34] name.WARNING: Foo [] []
[2019-09-16 06:56:34] name.ERROR: Bar [] []
Used Versions
PHP 7.3, Zend 3.0, Symfony 4.3, Laravel 5.8, PHPUnit 8.0, Doctrine 2.10