src/PrettyLogger.php
public static function create(string $channel = self::CHANNEL): Logger
    {
        $logger = new Logger($channel);
        $handler = new ErrorLogHandler();
        $formatter = new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
        $formatter->ignoreEmptyContextAndExtra();

        $handler->setFormatter($formatter);
        $logger->pushHandler($handler);

        return $logger;
    }
public static function create(string $channel = self::CHANNEL): Logger
    {
        $logger = new Logger($channel);
        $handler = new ErrorLogHandler();
        $formatter = new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
        $formatter->ignoreEmptyContextAndExtra();

        $handler->setFormatter($formatter);
        $logger->pushHandler($handler);

        return $logger;
    }
public static function create ( string $ channel = self :: CHANNEL ) : Logger { $ logger = new Logger ( $ channel ) ; $ handler = new ErrorLogHandler ( ) ; $ formatter = new LineFormatter ( '[%datetime%] %channel%.%level_name%: %message% %context% %extra%' ) ; $ formatter -> ignoreEmptyContextAndExtra ( ) ; $ handler -> setFormatter ( $ formatter ) ; $ logger -> pushHandler ( $ handler ) ; return $ logger ; }
Create Monolog logger without fucking brackets -> [] []  [] []  [] []  [] []  [] []
if context and extra is empty.

@param string $channel
@return \Monolog\Logger
Create Monolog logger without fucking brackets - > [] [] [] [] [] [] [] [] [] [] if context and extra is empty .