public function createLogger($channel, $stream = null, $level = null)
    {
        $stream = $stream === null ? fopen('php://stderr', 'w') : $stream;
        $level = $level === null ? Logger::INFO : $level;
        $handler = new StreamHandler($stream, $level);
        $handler->getFormatter()
            ->ignoreEmptyContextAndExtra();
        $handler->getFormatter()
            ->allowInlineLineBreaks();

        return new Logger($channel, [$handler]);
    }