|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.logging.impl.Log4JLogger
org.apache.commons.configuration.Logging
public class Logging
Configures logging for tests. When running with Maven do -Dmaven.surefire.debug="LogLevel=level" to set the Log Level to the desired value.
Constructor Summary | |
---|---|
Logging()
|
|
Logging(org.apache.log4j.Logger logger)
For use with a log4j factory. |
|
Logging(String name)
Base constructor. |
Method Summary | |
---|---|
void |
debug(Object message)
Logs a message with org.apache.log4j.Priority.DEBUG . |
void |
debug(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.DEBUG . |
void |
error(Object message)
Logs a message with org.apache.log4j.Priority.ERROR . |
void |
error(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.ERROR . |
void |
fatal(Object message)
Logs a message with org.apache.log4j.Priority.FATAL . |
void |
fatal(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.FATAL . |
void |
info(Object message)
Logs a message with org.apache.log4j.Priority.INFO . |
void |
info(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.INFO . |
void |
trace(Object message)
Logs a message with org.apache.log4j.Priority.TRACE . |
void |
trace(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.TRACE . |
void |
warn(Object message)
Logs a message with org.apache.log4j.Priority.WARN . |
void |
warn(Object message,
Throwable t)
Logs a message with org.apache.log4j.Priority.WARN . |
Methods inherited from class org.apache.commons.logging.impl.Log4JLogger |
---|
getLogger, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Logging()
public Logging(String name)
public Logging(org.apache.log4j.Logger logger)
Method Detail |
---|
public void trace(Object message)
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.
trace
in interface org.apache.commons.logging.Log
trace
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.trace(Object)
public void trace(Object message, Throwable t)
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.
trace
in interface org.apache.commons.logging.Log
trace
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.trace(Object, Throwable)
public void debug(Object message)
org.apache.log4j.Priority.DEBUG
.
debug
in interface org.apache.commons.logging.Log
debug
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.debug(Object)
public void debug(Object message, Throwable t)
org.apache.log4j.Priority.DEBUG
.
debug
in interface org.apache.commons.logging.Log
debug
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.debug(Object, Throwable)
public void info(Object message)
org.apache.log4j.Priority.INFO
.
info
in interface org.apache.commons.logging.Log
info
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.info(Object)
public void info(Object message, Throwable t)
org.apache.log4j.Priority.INFO
.
info
in interface org.apache.commons.logging.Log
info
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.info(Object, Throwable)
public void warn(Object message)
org.apache.log4j.Priority.WARN
.
warn
in interface org.apache.commons.logging.Log
warn
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.warn(Object)
public void warn(Object message, Throwable t)
org.apache.log4j.Priority.WARN
.
warn
in interface org.apache.commons.logging.Log
warn
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.warn(Object, Throwable)
public void error(Object message)
org.apache.log4j.Priority.ERROR
.
error
in interface org.apache.commons.logging.Log
error
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.error(Object)
public void error(Object message, Throwable t)
org.apache.log4j.Priority.ERROR
.
error
in interface org.apache.commons.logging.Log
error
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.error(Object, Throwable)
public void fatal(Object message)
org.apache.log4j.Priority.FATAL
.
fatal
in interface org.apache.commons.logging.Log
fatal
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logLog.fatal(Object)
public void fatal(Object message, Throwable t)
org.apache.log4j.Priority.FATAL
.
fatal
in interface org.apache.commons.logging.Log
fatal
in class org.apache.commons.logging.impl.Log4JLogger
message
- to logt
- log this causeLog.fatal(Object, Throwable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |