/** * <p>Get is show debug messages.</p> * @throws Exception - an exception * @return is show debug messages? **/ @Override public final boolean getIsShowDebugMessages() throws Exception { return this.logger.getIsShowDebugMessages(); }
final IRequestData pRequestData) throws Exception { this.detailLevel = this.logger.getDetailLevel(); this.isShowDebugMessages = this.logger.getIsShowDebugMessages() && this.logger.getIsShowDebugMessagesFor(this.getClass()); String nmEnt;
/** * <p>Get is show debug messages for this class.</p> * @param pClazz of bean * @throws Exception - an exception * @return is show debug messages? **/ @Override public final boolean getIsShowDebugMessages( final Class<?> pClazz) throws Exception { return this.logger.getIsShowDebugMessages(pClazz); }
final IRequestData pRequestData) throws Exception { int detLev = this.logger.getDetailLevel(); boolean isShowDebMsg = this.logger.getIsShowDebugMessages() && this.logger.getIsShowDebugMessagesFor(this.getClass()); String[] actionsArr = pRequestData.getParameter("nmsAct").split(",");
/** * <p>Get is show debug messages.</p> * @throws Exception - an exception * @return is show debug messages? **/ @Override public final boolean getIsShowDebugMessages() throws Exception { return this.logger.getIsShowDebugMessages(); }
/** * Is this logger instance enabled for the DEBUG level? * * @return True if this Logger is enabled for level DEBUG, false otherwise. */ @Override public boolean isDebugEnabled() { return this.logger.getIsShowDebugMessages(); }
/** * Is trace logging currently enabled? * <p> * Call this method to prevent having to perform expensive operations * (for example, <code>String</code> concatenation) * when the log level is more than trace. * * @return true if trace is enabled in the underlying logger. */ @Override public final boolean isTraceEnabled() { return this.logger.getIsShowDebugMessages(); }
/** * Is debug logging currently enabled? * <p> * Call this method to prevent having to perform expensive operations * (for example, <code>String</code> concatenation) * when the log level is more than debug. * * @return true if debug is enabled in the underlying logger. */ @Override public final boolean isDebugEnabled() { return this.logger.getIsShowDebugMessages(); }
/** * Logs a message with debug log level. * * @param message log this message */ @Override public final void debug(final Object msg) { if (this.logger.getIsShowDebugMessages()) { String sMsg = msg == null ? "???" : msg.toString(); this.logger.debug(null, getClass(), sMsg); } }
/** * Log an exception (throwable) at level VERBOSE with an accompanying message. * * @param msg * the message accompanying the exception * @param t * the exception (throwable) to log */ @Override public void trace(String msg, Throwable t) { if (this.logger.getIsShowDebugMessages()) { this.logger.debug(null, getClass(), msg, t); } }
/** * Log a message object at level VERBOSE. * * @param msg * - the message object to be logged */ @Override public void trace(String msg) { if (this.logger.getIsShowDebugMessages()) { this.logger.debug(null, getClass(), msg); } }
/** * Log a message object at level DEBUG. * * @param msg * - the message object to be logged */ @Override public void debug(String msg) { if (this.logger.getIsShowDebugMessages()) { this.logger.debug(null, getClass(), msg); } }
/** * Log an exception (throwable) at level DEBUG with an accompanying message. * * @param msg * the message accompanying the exception * @param t * the exception (throwable) to log */ @Override public void debug(String msg, Throwable t) { if (this.logger.getIsShowDebugMessages()) { this.logger.debug(null, getClass(), msg, t); } }
/** * Log a message at level VERBOSE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the VERBOSE level. * </p> * * @param format * the format string * @param argArray * an array of arguments */ @Override public void trace(String format, Object... argArray) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level DEBUG according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the DEBUG level. * </p> * * @param format * the format string * @param arg1 * the first argument * @param arg2 * the second argument */ @Override public void debug(String format, Object arg1, Object arg2) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, new Object[] {arg1, arg2}); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level DEBUG according to the specified format and argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for level DEBUG. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void debug(String format, Object arg) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, new Object[] {arg}); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level VERBOSE according to the specified format and * argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for level VERBOSE. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void trace(String format, Object arg) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, new Object[] {arg}); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level DEBUG according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the DEBUG level. * </p> * * @param format * the format string * @param argArray * an array of arguments */ @Override public void debug(String format, Object... argArray) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level VERBOSE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the VERBOSE level. * </p> * * @param format * the format string * @param arg1 * the first argument * @param arg2 * the second argument */ @Override public void trace(String format, Object arg1, Object arg2) { if (this.logger.getIsShowDebugMessages()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, new Object[] {arg1, arg2}); this.logger.debug(null, getClass(), ft.getMessage(), ft.getThrowable()); } }
/** * <p>Checks if request public.</p> * @param pReq request * @return if public * @throws Exception - an exception **/ public final Boolean evaluate( final HttpServletRequest pReq) throws Exception { String nameHandler = pReq.getParameter("nmHnd"); if (this.publicHandlerNames.contains(nameHandler)) { return Boolean.TRUE; } this.logger.error(null, CheckerPublicReqHndl.class, nameHandler + " IS NOT PUBLIC!!!"); if (this.logger.getIsShowDebugMessages() && this.logger.getDetailLevel() > 10000) { StringBuffer sb = new StringBuffer("Public handlers: "); for (String nmHnd : this.publicHandlerNames) { sb.append("/" + nmHnd); } this.logger.debug(null, CheckerPublicReqHndl.class, sb.toString()); } return Boolean.FALSE; }