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
Startable
public void setLogLevel(@Nonnull String loggerName, @Nonnull String levelName)
LoggingManager
setLogLevel
in interface LoggingManager
loggerName
- Logger namelevelName
- Logging level namepublic void setLogLevel(@Nonnull org.apache.log4j.Logger logger, @Nonnull org.apache.log4j.Level level)
LoggingManager
setLogLevel
in interface LoggingManager
logger
- Loggerlevel
- Logging Levelpublic void markLogs(String msg, boolean rollOver)
LoggingManager
markLogs
in interface LoggingManager
msg
- Message to write into the logsrollOver
- set to true to roll the logspublic void enableProfiling()
LoggingManager
enableProfiling
in interface LoggingManager
public void disableProfiling()
LoggingManager
disableProfiling
in interface LoggingManager
Copyright © 2002-2019 Atlassian. All Rights Reserved.