static String resolve(String message, Object[] args) {
        String formatted = String.format(message, args);
        // TODO - fix!  this case fails: ^cyan^warn^r^ if ^warn^ is evaluated first...really meant for ^cyan^ and ^r^
        // TODO - to be resolved
        for (String key : TERM_CODES.keySet()) {
            TermCode termCode = TERM_CODES.get(key);
            Matcher matcher = termCode.pattern.matcher(formatted);
            if (matcher.find()) {
                if (("warn".equals(key) && !warnLevel.get()) || ("info".equals(key) && !infoLevel.get())
                        || ("dbug".equals(key) && !dbugLevel.get())) {
                    // this is a log statement for a disabled log-level, skip.
                    return null;
                }
                if (decorated.get()) {
                    String output = isColoredOutput() ? termCode.output : termCode.nonColoredOutput;
                    formatted = matcher.replaceAll(output);
                }
            }
        }
        return formatted;
    }
static String resolve(String message, Object[] args) {
        String formatted = String.format(message, args);
       
       
        for (String key : TERM_CODES.keySet()) {
            TermCode termCode = TERM_CODES.get(key);
            Matcher matcher = termCode.pattern.matcher(formatted);
            if (matcher.find()) {
                if (("warn".equals(key) && !warnLevel.get()) || ("info".equals(key) && !infoLevel.get())
                        || ("dbug".equals(key) && !dbugLevel.get())) {
                   
                    return null;
                }
                if (decorated.get()) {
                    String output = isColoredOutput() ? termCode.output : termCode.nonColoredOutput;
                    formatted = matcher.replaceAll(output);
                }
            }
        }
        return formatted;
    }
static string resolve(string message, object[] args) { string formatted = string.format(message, args); for (string key : term_codes.keyset()) { termcode termcode = term_codes.get(key); matcher matcher = termcode.pattern.matcher(formatted); if (matcher.find()) { if (("warn".equals(key) && !warnlevel.get()) || ("info".equals(key) && !infolevel.get()) || ("dbug".equals(key) && !dbuglevel.get())) { return null; } if (decorated.get()) { string output = iscoloredoutput() ? termcode.output : termcode.noncoloredoutput; formatted = matcher.replaceall(output); } } } return formatted; }