Пример #1
0
 /**
  * @param stackOffset offset of the depth of stack of calling subroutines, to controll what
  *     subroutine name to be printed
  */
 public static void errWithOffset(int stackOffset) {
   if (errEnabled) {
     if (printErrorPrefix) {
       printCurrentStack(err, stackOffset); // added
       err.print(errPrefix);
     }
     err.println();
   }
 }
Пример #2
0
 public static void debug(int level) {
   if (debugEnabled && (debugLevel < 0 || level <= debugLevel)) {
     if (printDebugPrefix) {
       printCurrentStack(debug);
       debug.print(debugPrefix);
     }
     debug.println();
   }
 }
Пример #3
0
 /** error output only with prefix nor new line */
 public static void err() {
   if (errEnabled) {
     if (printErrorPrefix) {
       printCurrentStack(err); // added
       err.print(errPrefix);
     }
     err.println();
   }
 }
Пример #4
0
 /**
  * @param stackOffset offset of the depth of stack of calling subroutines, to controll what
  *     subroutine name to be printed
  */
 public static void errWithOffset(Object str, int stackOffset) {
   if (errEnabled) {
     if (printErrorPrefix) {
       printCurrentStack(err, stackOffset);
       err.print(errPrefix);
     }
     err.println(str);
   }
 }
Пример #5
0
 /** error output with prefix nor new line */
 public static void err(Object str) {
   if (errEnabled) {
     if (printErrorPrefix) {
       printCurrentStack(err);
       err.print(errPrefix);
     }
     err.println(str);
   }
 }
Пример #6
0
 /**
  * @param stackOffset offset of the depth of stack of calling subroutines, to controll what
  *     subroutine name to be printed
  */
 public static void printlnWithOffset(int stackOffset) {
   if (enabled) {
     if (printPrefix) printCurrentStack(ps, stackOffset); // added
     ps.println();
   }
 }
Пример #7
0
 /**
  * @param stackOffset offset of the depth of stack of calling subroutines, to controll what
  *     subroutine name to be printed
  */
 public static void printlnWithOffset(Object str, int stackOffset) {
   if (enabled) {
     if (printPrefix) printCurrentStack(ps, stackOffset);
     ps.println(str);
   }
 }
Пример #8
0
 public static void p() {
   if (enabled) {
     if (printPrefix) printCurrentStack(ps); // added
     ps.println();
   }
 }
Пример #9
0
 public static void p(Object str) {
   if (enabled) {
     if (printPrefix) printCurrentStack(ps);
     ps.println(str);
   }
 }