コード例 #1
0
 /**
  * Log at error level.
  *
  * @param message message to log
  * @param t ecxeption occured
  */
 public void error(String message, Throwable t) {
   // Must not be final so that we can mock it in EasyMock for our tests
   logHandler.error(message, t);
   if (debugStore != null) {
     debugStore.log(message, t);
   }
 }
コード例 #2
0
 // Final private error log for use in the constructor above
 private void intError(String message, Throwable t) {
   logHandler.error(message, t);
   debugStore.log(message, t);
 }
コード例 #3
0
 /**
  * Whether debug is switched on
  *
  * @return true if debug is switched on
  */
 public boolean isDebug() {
   return debugStore != null && debugStore.isDebug();
 }
コード例 #4
0
 /**
  * Log at debug level
  *
  * @param msg message to log
  */
 public void debug(String msg) {
   logHandler.debug(msg);
   if (debugStore != null) {
     debugStore.log(msg);
   }
 }