Logs a message from the J2CAMessages file.

@param key message key.
@param args message parameters
191204
public static final void logMessage(Level level, String key, Object... args) {
        if (WsLevel.AUDIT.equals(level))
            Tr.audit(tc, key, args);
        else if (WsLevel.ERROR.equals(level))
            Tr.error(tc, key, args);
        else if (Level.INFO.equals(level))
            Tr.info(tc, key, args);
        else if (Level.WARNING.equals(level))
            Tr.warning(tc, key, args);
        else
            throw new UnsupportedOperationException(level.toString());
    }
388006
public void error(String message, Object... args) {
    error(String.format(message, args), getThrowable(args));
  }
319038
public void printVerbose(String key, Object... args) {
        PrintWriter noticeWriter = writers.get(WriterKind.NOTICE);
        printRawLines(noticeWriter, localize("verbose." + key, args));
    }
272567
public static void log(String format, Object...args) {
    System.out.println(String.format(format, args));
  }
717574
public String xlate (String key, Object arg)
    {
        return _msgmgr.getMessage(_req, key, new Object[] { arg });
    }
1067746
protected String getMessage(String key, String... args) {

        return Messages.get().getBundle(m_cms.getRequestContext().getLocale()).key(key, args);
    }
895290
public void error(String message, Object ... args) {
    if (log.isErrorEnabled()) {
      log.error(String.format(message, args));
    }
  }
203101
public void info(String message, Object... args) {
		if (DEBUG.equals(this.logLevel) || INFO.equals(this.logLevel)) {
			System.out.println(String.format(message, args));
		}
	}
71700
@Override
	public void info(String msg, Object... args) {
	    LoggerFactory.getLogger(from).info(msg, args);
	}
410305
@Override
    public void trace(String format, Object arg) {
        if (logger.isTraceEnabled()) {
            FormattingTuple ft = MessageFormatter.format(format, arg);
            logger.trace(ft.getMessage(), ft.getThrowable());
        }
    }
564731
void startmsg(String key, Object... args) {
        cmderr.println(messageFormat(key, args));
    }
606114
@Override
    public String key(String key, Object[] args) {

        if (hasConfigValue(key)) {
            return getConfigValue(key, args);
        }
        return m_messages.key(key, args);
    }
272342
public static final void recordKeyHistory(List<Object> baseMessage, Object messageKey)
    {
        KeyHistory history = new KeyHistory();

        if (messageKey != null)
        {
            history.addKey(messageKey.toString());
        }

        baseMessage.add(0, history);
    }
984579
public String formatMessage(String key, Object[] args) {
		try {
			String raw = this.getMessage(key);
			return MessageFormat.format(raw, args);
		} catch (MissingResourceException ex) {
			return "???!"+key+"!???";
		}
	}
1022977
protected final void args(Object... args) {
        if (args == null) args = NO_ARGS;
        this.args = args;
        retry();
    }
784158
public void command(String... args)
    {
        try
        {
            setArgs(args);
        }
        catch (CmdArgsException ex)
        {
            ex.printStackTrace();
            Logger logger = Logger.getLogger(CmdArgs.class.getName());
            logger.log(Level.SEVERE, Arrays.toString(args));
            logger.log(Level.SEVERE, ex.getMessage(), ex);
            logger.log(Level.SEVERE, ex.usage());
            System.exit(-1);
        }
    }
792264
public static void main(String[] arg)
    {
        try
        {
            for (int i = 0; i < arg.length; i++)
                new XmlConfiguration(Resource.newResource(arg[i]).getURL()).newInstance();
        }
        catch (Exception e)
        {
            log.warn(LogSupport.EXCEPTION, e);
        }
    }