public CustomFilter(String pattern, String format, String level, String separator){

        this.pattern = Pattern.compile(pattern);

        this.level = level.isEmpty() || level == null ? null : Level.valueOf(level);
        this.separator = separator.isEmpty() || separator == null ? null : separator;
        this.format = format.isEmpty() || format == null ? null : format;
    }