예제 #1
0
 /**
  * adds arbitrary number of data items to a log file
  *
  * @param level defines the log that will data
  * @param resourceID is used to load a string from a resource bundle
  * @param obj Array of data items to be logged
  */
 public static void add(int level, String resourceID, Object[] obj) {
   if (logLevel >= level) {
     MessageFormat mf = new MessageFormat(I18N.loadString(resourceID));
     mf.setLocale(I18N.locale);
     for (int i = 0; i < obj.length; i++) {
       obj[i] = obj[i].toString();
     }
     addInfo(mf.format(obj));
   }
 }
예제 #2
0
 /**
  * add adds data to an installation log
  *
  * @param level defines the log that will data
  * @param resourceID the resource id
  */
 public static void add(int level, String resourceID) {
   if (logLevel >= level) {
     addInfo(I18N.loadString(resourceID));
   }
 }