Exemple #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);
 }
Exemple #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);
   }
 }
Exemple #3
0
 public static void Log(Level loglevel, String txt, boolean sendReport) {
   logger.log(
       loglevel,
       String.format("[" + HelpPlusPlus.getInternalName() + "] %s", txt == null ? "" : txt));
 }
Exemple #4
0
 public static void Log(String txt) {
   logger.log(Level.INFO, String.format("[" + HelpPlusPlus.getInternalName() + "] %s", txt));
 }
Exemple #5
0
 public static void warning(String string) {
   logger.log(Level.WARNING, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Exemple #6
0
 public static void info(String string) {
   logger.log(Level.INFO, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Exemple #7
0
 public static void severe(String string) {
   logger.log(Level.SEVERE, "[" + HelpPlusPlus.getInternalName() + "] ".concat(string));
 }
Exemple #8
0
 public static void severe(String string, Exception ex) {
   logger.log(Level.SEVERE, "[" + HelpPlusPlus.getInternalName() + "] " + string, ex);
 }