public class LogAdjuster extends Object
Constructor and Description |
---|
LogAdjuster(String baseUrl)
Requires the base url of the server in order to log in a ConfluenceRpc.
|
Modifier and Type | Method and Description |
---|---|
void |
resetLogLevels()
Undoes all level setting by this LogAdjuster.
|
void |
setLogLevel(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. |
public LogAdjuster(String baseUrl)
public void setLogLevel(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()
Copyright © 2003–2017 Atlassian. All rights reserved.