for log4J version 1.2.
Initial configuration of the corresponding Logger instances should be done
in the usual manner, as outlined in the Log4J documentation.
The reason this logger is distinct from the 1.3 logger is that in version 1.2
of Log4J:
Log4J1.3 is expected to change Level so it no longer extends Priority, which is
a non-binary-compatible change. The class generated by compiling this code against
log4j 1.2 will therefore not run against log4j 1.3.
Method from org.apache.commons.logging.impl.Log4JLogger Detail: |
public void debug(Object message) {
getLogger().log(FQCN, Priority.DEBUG, message, null );
}
Logs a message with org.apache.log4j.Priority.DEBUG . |
public void debug(Object message,
Throwable t) {
getLogger().log(FQCN, Priority.DEBUG, message, t );
}
Logs a message with org.apache.log4j.Priority.DEBUG . |
public void error(Object message) {
getLogger().log(FQCN, Priority.ERROR, message, null );
}
Logs a message with org.apache.log4j.Priority.ERROR . |
public void error(Object message,
Throwable t) {
getLogger().log(FQCN, Priority.ERROR, message, t );
}
Logs a message with org.apache.log4j.Priority.ERROR . |
public void fatal(Object message) {
getLogger().log(FQCN, Priority.FATAL, message, null );
}
Logs a message with org.apache.log4j.Priority.FATAL . |
public void fatal(Object message,
Throwable t) {
getLogger().log(FQCN, Priority.FATAL, message, t );
}
Logs a message with org.apache.log4j.Priority.FATAL . |
public Logger getLogger() {
if (logger == null) {
logger = Logger.getLogger(name);
}
return (this.logger);
}
Return the native Logger instance we are using. |
public void info(Object message) {
getLogger().log(FQCN, Priority.INFO, message, null );
}
Logs a message with org.apache.log4j.Priority.INFO . |
public void info(Object message,
Throwable t) {
getLogger().log(FQCN, Priority.INFO, message, t );
}
Logs a message with org.apache.log4j.Priority.INFO . |
public boolean isDebugEnabled() {
return getLogger().isDebugEnabled();
}
Check whether the Log4j Logger used is enabled for DEBUG priority. |
public boolean isErrorEnabled() {
return getLogger().isEnabledFor(Priority.ERROR);
}
Check whether the Log4j Logger used is enabled for ERROR priority. |
public boolean isFatalEnabled() {
return getLogger().isEnabledFor(Priority.FATAL);
}
Check whether the Log4j Logger used is enabled for FATAL priority. |
public boolean isInfoEnabled() {
return getLogger().isInfoEnabled();
}
Check whether the Log4j Logger used is enabled for INFO priority. |
public boolean isTraceEnabled() {
return getLogger().isEnabledFor(traceLevel);
}
Check whether the Log4j Logger used is enabled for TRACE priority.
When using a log4j version that does not support the TRACE level, this call
will report whether DEBUG is enabled or not. |
public boolean isWarnEnabled() {
return getLogger().isEnabledFor(Priority.WARN);
}
Check whether the Log4j Logger used is enabled for WARN priority. |
public void trace(Object message) {
getLogger().log(FQCN, traceLevel, message, null );
}
Logs a message with org.apache.log4j.Priority.TRACE .
When using a log4j version that does not support the TRACE
level, the message will be logged at the DEBUG level. |
public void trace(Object message,
Throwable t) {
getLogger().log(FQCN, traceLevel, message, t );
}
Logs a message with org.apache.log4j.Priority.TRACE .
When using a log4j version that does not support the TRACE
level, the message will be logged at the DEBUG level. |
public void warn(Object message) {
getLogger().log(FQCN, Priority.WARN, message, null );
}
Logs a message with org.apache.log4j.Priority.WARN . |
public void warn(Object message,
Throwable t) {
getLogger().log(FQCN, Priority.WARN, message, t );
}
Logs a message with org.apache.log4j.Priority.WARN . |