Methods Summary |
---|
public static java.lang.String | getLocalString(java.lang.String key, java.lang.String defaultString, java.lang.Object arguments)
String value = defaultString;
if (resourceBundle!=null && resourceBundle.getString(key)!=null){
value = resourceBundle.getString(key);
}
return MessageFormat.format(value, arguments);
|
public static java.util.logging.Logger | getLogger()
if (logger==null) {
logger = Logger.global;
}
return logger;
|
public static java.lang.String | getLoggerTarget()
return whatToLog;
|
public static void | setLogger(java.util.logging.Logger lg)
logger = lg;
|
public static void | setLoggerTarget(java.lang.String what)
whatToLog = what;
|
public static boolean | shouldLog(java.lang.String what)
if (logger.isLoggable(Level.FINER)) {
if (whatToLog.indexOf(what)!=-1)
return true;
if ("*".equals(whatToLog))
return true;
}
return false;
|