Class LoggingEndpoint
java.lang.Object
com.github.robtimus.connect.sdk.java.springboot.actuator.LoggingEndpoint
@Endpoint(id="connectSdkLogging",
enableByDefault=false)
public class LoggingEndpoint
extends Object
An
Endpoint for enabling and disabling logging in
connect-sdk-java.- Author:
- Rob Spoor
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisables logging for allLoggingCapablebeans.voiddisableLoggingOnBean(String beanName) Disables logging for a specificLoggingCapablebean.voidenableLogging(String logger) Enables logging for allLoggingCapablebeans.voidenableLoggingOnBean(String beanName, String logger) Enables logging for a specificLoggingCapablebean.
-
Constructor Details
-
LoggingEndpoint
-
-
Method Details
-
listLoggingCapableAndLoggerBeans
@ReadOperation public LoggingEndpoint.LoggingCapableAndLoggerBeans listLoggingCapableAndLoggerBeans()- Returns:
- All
LoggingCapableandCommunicatorLoggerbeans.
-
enableLogging
Enables logging for allLoggingCapablebeans.- Parameters:
logger- If given, the bean name of theCommunicatorLoggerto use. Otherwise all availableCommunicatorLoggers will be used.
-
enableLoggingOnBean
Enables logging for a specificLoggingCapablebean.- Parameters:
beanName- The name of theLoggingCapablebean.logger- If given, the bean name of theCommunicatorLoggerto use. Otherwise all availableCommunicatorLoggers will be used.
-
disableLogging
Disables logging for allLoggingCapablebeans. -
disableLoggingOnBean
Disables logging for a specificLoggingCapablebean.- Parameters:
beanName- The name of theLoggingCapablebean.
-