Class Log4j2ConfigService
- java.lang.Object
-
- com.atlassian.confluence.impl.logging.log4j.config.Log4j2ConfigService
-
- All Implemented Interfaces:
LoggingConfigService
public class Log4j2ConfigService extends Object implements LoggingConfigService
An implementation ofLoggingConfigService
backed by Log4j 2.x- Since:
- 7.17
-
-
Constructor Summary
Constructors Constructor Description Log4j2ConfigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LoggingConfigEntry>
getLoggerConfig()
boolean
isDiagnosticEnabled()
boolean
isHibernateLoggingEnabled()
void
rateLimit(String exceptionClassName, Duration burstDuration, int burstMax)
void
reconfigure(InputStream configStream)
void
resetLoggerLevel(String loggerName)
void
setLevelForLogger(String className, String levelName)
void
turnOffHibernateLogging()
void
turnOnHibernateLogging()
-
-
-
Method Detail
-
getLoggerConfig
public List<LoggingConfigEntry> getLoggerConfig()
- Specified by:
getLoggerConfig
in interfaceLoggingConfigService
- Returns:
- A list of all of the logger configs, sorted by logger name, with the root logger last
-
setLevelForLogger
public void setLevelForLogger(String className, String levelName)
- Specified by:
setLevelForLogger
in interfaceLoggingConfigService
-
resetLoggerLevel
public void resetLoggerLevel(String loggerName)
- Specified by:
resetLoggerLevel
in interfaceLoggingConfigService
-
turnOffHibernateLogging
public void turnOffHibernateLogging()
- Specified by:
turnOffHibernateLogging
in interfaceLoggingConfigService
-
turnOnHibernateLogging
public void turnOnHibernateLogging()
- Specified by:
turnOnHibernateLogging
in interfaceLoggingConfigService
-
isHibernateLoggingEnabled
public boolean isHibernateLoggingEnabled()
- Specified by:
isHibernateLoggingEnabled
in interfaceLoggingConfigService
-
isDiagnosticEnabled
public boolean isDiagnosticEnabled()
- Specified by:
isDiagnosticEnabled
in interfaceLoggingConfigService
-
reconfigure
public void reconfigure(InputStream configStream) throws IOException
- Specified by:
reconfigure
in interfaceLoggingConfigService
- Throws:
IOException
-
rateLimit
public void rateLimit(String exceptionClassName, Duration burstDuration, int burstMax)
- Specified by:
rateLimit
in interfaceLoggingConfigService
-
-