public class LoggingResource extends Object
Constructor and Description |
---|
LoggingResource() |
Modifier and Type | Method and Description |
---|---|
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.
|
public String setLoggingLevel(String loggerName, String level)
Change the level of the specified logger.
The level parameter can be one of -
loggerName
- the full name of the logger e.g. com.atlassian.confluence.functest.rest.LoggingResourcelevel
- the level to change the logger toBadRequestException
- if the incoming loggerName is omittedpublic boolean logMessage(String destination, String message)
Only administrators can log messages.
The destination of the message has the following valid values:
destination
- The destination of the message to be loggedmessage
- The text message to be logged to the consoleCopyright © 2003–2020 Atlassian. All rights reserved.