Пример #1
0
 public static void Log(Level loglevel, Exception err) {
   logger.log(
       loglevel,
       String.format(
           "[" + HelpPlusPlus.getInternalName() + "] %s",
           err == null ? "? unknown exception ?" : err.getMessage()),
       err);
 }
Пример #2
0
 public static void Log(Level loglevel, String txt, Exception params) {
   if (txt == null) {
     Log(loglevel, params);
   } else {
     logger.log(
         loglevel,
         String.format("[" + HelpPlusPlus.getInternalName() + "] %s", txt == null ? "" : txt),
         (Exception) params);
   }
 }
Пример #3
0
 public static void Log(Level loglevel, String txt, boolean sendReport) {
   logger.log(
       loglevel,
       String.format("[" + HelpPlusPlus.getInternalName() + "] %s", txt == null ? "" : txt));
 }
Пример #4
0
 public static void Log(String txt) {
   logger.log(Level.INFO, String.format("[" + HelpPlusPlus.getInternalName() + "] %s", txt));
 }
Пример #5
0
 public static void warning(String string) {
   logger.log(Level.WARNING, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Пример #6
0
 public static void info(String string) {
   logger.log(Level.INFO, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Пример #7
0
 public static void severe(String string) {
   logger.log(Level.SEVERE, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Пример #8
0
 public static void severe(String string, Exception ex) {
   logger.log(Level.SEVERE, "[" + HelpPlusPlus.getInternalName() + "] " + string, ex);
 }