Refine search
/** This generic form is intended to be used by wrappers. */ public void log(Priority priority, Object message) { if(repository.isDisabled(priority.level)) { return; } if(priority.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, priority, message, null); }
/** Check whether this category is enabled for a given {@link Level} passed as parameter. See also {@link #isDebugEnabled}. @return boolean True if this category is enabled for <code>level</code>. */ public boolean isEnabledFor(Priority level) { if(repository.isDisabled(level.level)) return false; return level.isGreaterOrEqual(this.getEffectiveLevel()); }
/** This generic form is intended to be used by wrappers. */ public void log(Priority priority, Object message, Throwable t) { if(repository.isDisabled(priority.level)) { return; } if(priority.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, priority, message, t); }
/** Check whether this category is enabled for the info Level. See also {@link #isDebugEnabled}. @return boolean - <code>true</code> if this category is enabled for level info, <code>false</code> otherwise. */ public boolean isInfoEnabled() { if(repository.isDisabled(Level.INFO_INT)) return false; return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()); }
/** Log a message object with the <code>DEBUG</code> level including the stack trace of the {@link Throwable} <code>t</code> passed as parameter. <p>See {@link #debug(Object)} form for more detailed information. @param message the message object to log. @param t the exception to log, including its stack trace. */ public void debug(Object message, Throwable t) { if(repository.isDisabled(Level.DEBUG_INT)) return; if(Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.DEBUG, message, t); }
if(repository.isDisabled( Level.DEBUG_INT)) return false; return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());
/** Log a message object with the <code>FATAL</code> level including the stack trace of the {@link Throwable} <code>t</code> passed as parameter. <p>See {@link #fatal(Object)} for more detailed information. @param message the message object to log. @param t the exception to log, including its stack trace. */ public void fatal(Object message, Throwable t) { if(repository.isDisabled(Level.FATAL_INT)) return; if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.FATAL, message, t); }
/** Check whether this category is enabled for the info Level. See also {@link #isDebugEnabled}. @return boolean - <code>true</code> if this category is enabled for level info, <code>false</code> otherwise. */ public boolean isInfoEnabled() { if(repository.isDisabled(Level.INFO_INT)) return false; return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()); }
/** Log a message object with the <code>INFO</code> level including the stack trace of the {@link Throwable} <code>t</code> passed as parameter. <p>See {@link #info(Object)} for more detailed information. @param message the message object to log. @param t the exception to log, including its stack trace. */ public void info(Object message, Throwable t) { if(repository.isDisabled(Level.INFO_INT)) return; if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.INFO, message, t); }
/** Check whether this category is enabled for a given {@link Level} passed as parameter. See also {@link #isDebugEnabled}. @return boolean True if this category is enabled for <code>level</code>. */ public boolean isEnabledFor(Priority level) { if(repository.isDisabled(level.level)) return false; return level.isGreaterOrEqual(this.getEffectiveLevel()); }
/** Log a message object with the <code>ERROR</code> level including the stack trace of the {@link Throwable} <code>t</code> passed as parameter. <p>See {@link #error(Object)} form for more detailed information. @param message the message object to log. @param t the exception to log, including its stack trace. */ public void error(Object message, Throwable t) { if(repository.isDisabled(Level.ERROR_INT)) return; if(Level.ERROR.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.ERROR, message, t); }
/** * Check whether this category is enabled for the TRACE Level. * @since 1.2.12 * * @return boolean - <code>true</code> if this category is enabled for level * TRACE, <code>false</code> otherwise. */ public boolean isTraceEnabled() { if (repository.isDisabled(Level.TRACE_INT)) { return false; } return Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel()); }
/** Log a message with the <code>WARN</code> level including the stack trace of the {@link Throwable} <code>t</code> passed as parameter. <p>See {@link #warn(Object)} for more detailed information. @param message the message object to log. @param t the exception to log, including its stack trace. */ public void warn(Object message, Throwable t) { if(repository.isDisabled(Level.WARN_INT)) return; if(Level.WARN.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.WARN, message, t); } }
/** Check whether this category is enabled for a given {@link Level} passed as parameter. See also {@link #isDebugEnabled}. @return boolean True if this category is enabled for <code>level</code>. */ public boolean isEnabledFor(Priority level) { if(repository.isDisabled(level.level)) { return false; } return level.isGreaterOrEqual(this.getEffectiveLevel()); }
/** This is the most generic printing method. It is intended to be invoked by <b>wrapper</b> classes. @param callerFQCN The wrapper class' fully qualified class name. @param level The level of the logging request. @param message The message of the logging request. @param t The throwable of the logging request, may be null. */ public void log(String callerFQCN, Priority level, Object message, Throwable t) { if(repository.isDisabled(level.level)) { return; } if(level.isGreaterOrEqual(this.getEffectiveLevel())) { forcedLog(callerFQCN, level, message, t); } }
/** Check whether this category is enabled for the info Level. See also {@link #isDebugEnabled}. @return boolean - <code>true</code> if this category is enabled for level info, <code>false</code> otherwise. */ public boolean isInfoEnabled() { if(repository.isDisabled(Level.INFO_INT)) { return false; } return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()); }
/** Log a message object with the {@link Level#FATAL FATAL} Level. <p>This method first checks if this category is <code>FATAL</code> enabled by comparing the level of this category with {@link Level#FATAL FATAL} Level. If the category is <code>FATAL</code> enabled, then it converts the message object passed as parameter to a string by invoking the appropriate {@link org.apache.log4j.or.ObjectRenderer}. It proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. <p><b>WARNING</b> Note that passing a {@link Throwable} to this method will print the name of the Throwable but no stack trace. To print a stack trace use the {@link #fatal(Object, Throwable)} form instead. @param message the message object to log */ public void fatal(Object message) { if(repository.isDisabled(Level.FATAL_INT)) return; if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.FATAL, message, null); }
if(repository.isDisabled( Level.DEBUG_INT)) return false; return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());
/** Log a message object with the {@link Level#INFO INFO} Level. <p>This method first checks if this category is <code>INFO</code> enabled by comparing the level of this category with {@link Level#INFO INFO} Level. If the category is <code>INFO</code> enabled, then it converts the message object passed as parameter to a string by invoking the appropriate {@link org.apache.log4j.or.ObjectRenderer}. It proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. <p><b>WARNING</b> Note that passing a {@link Throwable} to this method will print the name of the Throwable but no stack trace. To print a stack trace use the {@link #info(Object, Throwable)} form instead. @param message the message object to log */ public void info(Object message) { if(repository.isDisabled(Level.INFO_INT)) return; if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel())) forcedLog(FQCN, Level.INFO, message, null); }
if(repository.isDisabled( Level.DEBUG_INT)) { return false; return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());