Class LogAppenderController
- java.lang.Object
-
- com.atlassian.confluence.impl.logging.LogAppenderController
-
public final class LogAppenderController extends Object
Provides a control mechanism for the various log4j appenders in the system. This allows the application to reconfiguring and issue instructions to all registered appenders at the same time.- Since:
- 7.14
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
reconfigureAppendersWithLogDirectory()
Reconfigures all registered appenders with the logs subdirectory of Confluence's local-home.static void
registerLogDirectoryAware(Consumer<Path> logDirectoryAware)
Registers an interest in when the Confluence home log directory becomes available.static void
registerRolloverRunner(Runnable rolloverRunner)
Registers a runner to be run whenever a log file rollover is requested.static void
rolloverAppenders()
Requests that all registered appenders perform a file rollover.
-
-
-
Method Detail
-
registerLogDirectoryAware
public static void registerLogDirectoryAware(Consumer<Path> logDirectoryAware)
Registers an interest in when the Confluence home log directory becomes available.
-
registerRolloverRunner
public static void registerRolloverRunner(Runnable rolloverRunner)
Registers a runner to be run whenever a log file rollover is requested.
-
reconfigureAppendersWithLogDirectory
public static void reconfigureAppendersWithLogDirectory()
Reconfigures all registered appenders with the logs subdirectory of Confluence's local-home.
-
rolloverAppenders
public static void rolloverAppenders()
Requests that all registered appenders perform a file rollover.
-
-