Prints formatted and colorized {@code format} to {@link System#out}

@param format  A format string whose output to be colorized
@param args      Arguments referenced by the format specifiers in the format
438045
public void outFormat(String format, Object... args){
        format(System.out, format, args);
    }
204411
public static String format(String msg, Object... args) {

        if (args == null || args.length == 0)
            return msg;

        StringBuilder sb = new StringBuilder();
        int argId = 0;
        for (int i = 0; i < msg.length(); i++) {

            final char c = msg.charAt(i);
            if (c == '{' && msg.charAt(i + 1) == '}') {
                if (args.length > argId) {
                    Object val = args[argId++];
                    if (val == null)
                        sb.append("null");
                    else
                        sb.append(val.toString());
                } else {
                    sb.append("{{MISSING ARG}}");
                }
                i++;
            } else {
                sb.append(c);
            }
        }
        return sb.toString();
    }
776919
public static void logPrintf(String format, String... v) {
        if (enableLog) {
            String tmp = String.format(format, (Object[]) v);
            logger.log(Level.INFO, tmp);
        }
    }
98126
public static void printWarn(Object caller, String format, Object... args)
	{
		Object msg = String.format(format, args);
		
		printWarn(caller,msg);
	}
24154
public static void printFatal(Object caller, String format, Object... args)
	{
		Object msg = String.format(format, args);
		
		printFatal(caller,msg);
	}
563070
@Override
    public void info(String format, Object arg) {
        if (logger.isInfoEnabled()) {
            FormattingTuple ft = MessageFormatter.format(format, arg);
            logger.info(ft.getMessage(), ft.getThrowable());
        }
    }
1032530
public void print(String pattern, Object... arguments) {
    print(String.format(pattern, arguments));
  }
322936
@Override
    public void debug(String format, Object arg) {
        if (logger.isDebugEnabled()) {
            FormattingTuple ft = MessageFormatter.format(format, arg);
            logger.debug(ft.getMessage(), ft.getThrowable());
        }
    }
1127980
public void info(String format, Object arg) {
        formatAndLog(LOG_LEVEL_INFO, format, arg, null);
    }
1297692
public void debug( String format, Object arg )
    {
        if( m_delegate.isDebugEnabled() )
        {
            FormattingTuple tuple = MessageFormatter.format( format, arg );
            m_delegate.debug( tuple.getMessage(), tuple.getThrowable() );
        }
    }
974268
public void setGWTFormat(final String format) {
        this.format = toBootstrapDateFormat(format);

        // Get the old value
        final Date oldValue = getValue();

        // Make the new DateTimeFormat
        this.dateTimeFormat = DateTimeFormat.getFormat(format);

        if (oldValue != null) {
            setValue(oldValue);
        }
    }
952242
public void config(String format, Object... args)
    {
        if (isLoggable(CONFIG))
        {
            logIt(CONFIG, String.format(format, args));
        }
    }
388656
@Override
    public void trace(String format, Object arg) {
        if (isTraceEnabled()) {
            FormattingTuple ft = MessageFormatter.format(format, arg);
            logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft
                    .getMessage(), ft.getThrowable());
        }
    }
299603
public void d(String format, Object... args) {
    println(LogLevel.DEBUG, format, args);
  }
804554
public static ReportGenerator.Format getFormat( String... args ) {
        ConfigOptionParser configParser = new ConfigOptionParser();
        List<ConfigOption> configOptions = Arrays.asList( format, help );

        for( ConfigOption co : configOptions ) {
            if( co.hasDefault() ) {
                configParser.parsedOptions.put( co.getLongName(), co.getValue() );
            }
        }

        for( String arg : args ) {
            configParser.commandLineLookup( arg, format, configOptions );
        }

        // TODO properties
        // TODO environment

        if( !configParser.hasValue( format ) ) {
            configParser.printUsageAndExit( configOptions );
        }
        return (ReportGenerator.Format) configParser.getValue( format );
    }
328569
public void info(String format, Object... args)
    {
        if (isLoggable(INFO))
        {
            logIt(INFO, String.format(format, args));
        }
    }
1299179
public String format(String format)
  {
    CharBuffer cb = new CharBuffer();

    return format(cb, format).close();
  }