public class ClusterLoggingManager extends Object implements LoggingManager, Startable
| Constructor and Description |
|---|
ClusterLoggingManager(MessageHandlerService messageHandlerService,
JiraProperties jiraSystemProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableProfiling()
Turn off profiling.
|
void |
enableProfiling()
Turn on profiling.
|
void |
markLogs(String msg,
boolean rollOver)
Write a marker to the log and optionally roll the logs.
|
void |
setLogLevel(org.apache.log4j.Logger logger,
org.apache.log4j.Level level)
Set the logging level for a logger.
|
void |
setLogLevel(String loggerName,
String levelName)
Set the logging level for a logger.
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public ClusterLoggingManager(MessageHandlerService messageHandlerService, JiraProperties jiraSystemProperties)
public void start()
throws Exception
Startablepublic void setLogLevel(@Nonnull String loggerName, @Nonnull String levelName)
LoggingManagersetLogLevel in interface LoggingManagerloggerName - Logger namelevelName - Logging level namepublic void setLogLevel(@Nonnull org.apache.log4j.Logger logger, @Nonnull org.apache.log4j.Level level)
LoggingManagersetLogLevel in interface LoggingManagerlogger - Loggerlevel - Logging Levelpublic void markLogs(String msg, boolean rollOver)
LoggingManagermarkLogs in interface LoggingManagermsg - Message to write into the logsrollOver - set to true to roll the logspublic void enableProfiling()
LoggingManagerenableProfiling in interface LoggingManagerpublic void disableProfiling()
LoggingManagerdisableProfiling in interface LoggingManagerCopyright © 2002-2018 Atlassian. All Rights Reserved.