class ErrorLogFactory {

    public static ErrorLog newInstance(Log.error logError) {
        return new ErrorLog(
                AnnotationAttribute.LEVEL.extract(logError),
                logError.ifEnabled(),
                logError.verbose(),
                errorFilterFactory.buildErrorFilter(logError.ofType(), logError.exclude())
        );
    }

}