|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.system.LogAdjuster
public class LogAdjuster
Adjusts and resets log levels of the system. Definitely isn't thread-safe.
Constructor Summary | |
---|---|
LogAdjuster(java.lang.String baseUrl)
Requires the base url of the server in order to log in a ConfluenceRpc. |
Method Summary | |
---|---|
void |
resetLogLevels()
Undoes all level setting by this LogAdjuster. |
void |
setLogLevel(java.lang.String logger,
org.apache.log4j.Level level)
Adjust the log level for a given logger pattern. |
void |
suppressMultipartRequestLogging()
Convenience method to change logging of the com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
to Level.ERROR , which is very commonly performed to suppress its noisy logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogAdjuster(java.lang.String baseUrl)
Method Detail |
---|
public void setLogLevel(java.lang.String logger, org.apache.log4j.Level level)
resetLogLevels()
, which should be called in a finally or a tearDown.
public void suppressMultipartRequestLogging()
com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
to Level.ERROR
, which is very commonly performed to suppress its noisy logging.
This call should be matched with a call to resetLogLevels()
in the finally or tearDown.
public void resetLogLevels()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |