com.opensymphony.xwork2.util.logging
Class LoggerUtils

java.lang.Object
  extended by com.opensymphony.xwork2.util.logging.LoggerUtils

public class LoggerUtils
extends Object

Logging utility methods


Constructor Summary
LoggerUtils()
           
 
Method Summary
static String format(String msg, Object[] args)
           
static String format(String msg, String... args)
          Formats messages using parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerUtils

public LoggerUtils()
Method Detail

format

public static String format(String msg,
                            String... args)
Formats messages using parameters. For example, the call:
 format("foo #0 #1", "bob", "joe");
 
will return:
 foo bob joe
 

Parameters:
msg - The message
args - A list of arguments. A maximum of 10 are supported.
Returns:
The formatted string

format

public static String format(String msg,
                            Object[] args)


Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.