public static function getHandler(array $config = []): AbstractHandler
    {
        if (!empty($config['instance'])) {
            $handler = $config['instance'];
            unset($config['instance']);
        } else {
            $handler = StreamHandler::class;
        }
        return new $handler($config);
    }