public class

LogAdjuster

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.it.system.LogAdjuster

Class Overview

Adjusts and resets log levels of the system. Definitely isn't thread-safe.

Summary

Public Constructors
LogAdjuster(String baseUrl)
Requires the base url of the server in order to log in a ConfluenceRpc.
Public Methods
void resetLogLevels()
Undoes all level setting by this LogAdjuster.
void setLogLevel(String logger, 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 ERROR, which is very commonly performed to suppress its noisy logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LogAdjuster (String baseUrl)

Requires the base url of the server in order to log in a ConfluenceRpc.

Public Methods

public void resetLogLevels ()

Undoes all level setting by this LogAdjuster. Clears its state, so a new LogAdjuster is not required each time.

public void setLogLevel (String logger, Level level)

Adjust the log level for a given logger pattern. It will be reset by a subsequent call to resetLogLevels(), which should be called in a finally or a tearDown.

public void suppressMultipartRequestLogging ()

Convenience method to change logging of the com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest to 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.