com.atlassian.confluence.functest.rest.admin
Class LoggingResource

java.lang.Object
  extended by com.atlassian.confluence.functest.rest.admin.LoggingResource

public class LoggingResource
extends Object


Constructor Summary
LoggingResource()
           
 
Method Summary
 String getLoggingLevel(String loggerName)
           
 boolean logMessage(String destination, String message)
          Log a message to the server's console.
 String setLoggingLevel(String loggerName, String level)
           Change the level of the specified logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingResource

public LoggingResource()
Method Detail

getLoggingLevel

public String getLoggingLevel(String loggerName)

setLoggingLevel

public String setLoggingLevel(String loggerName,
                              String level)

Change the level of the specified logger.

The level parameter can be one of -


logMessage

public boolean logMessage(String destination,
                          String message)
Log a message to the server's console.

Only administrators can log messages.

The destination of the message has the following valid values:

Parameters:
destination - The destination of the message to be logged
message - The text message to be logged to the console
Returns:
boolean True if the message is logged (ie destination is a valid level)


Copyright © 2003–2015 Atlassian. All rights reserved.