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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables logging for allLoggingCapable
beans.void
disableLoggingOnBean
(String beanName) Disables logging for a specificLoggingCapable
bean.void
enableLogging
(String logger) Enables logging for allLoggingCapable
beans.void
enableLoggingOnBean
(String beanName, String logger) Enables logging for a specificLoggingCapable
bean.
-
Constructor Details
-
LoggingEndpoint
-
-
Method Details
-
listLoggingCapableAndLoggerBeans
@ReadOperation public LoggingEndpoint.LoggingCapableAndLoggerBeans listLoggingCapableAndLoggerBeans()- Returns:
- All
LoggingCapable
andCommunicatorLogger
beans.
-
enableLogging
Enables logging for allLoggingCapable
beans.- Parameters:
logger
- If given, the bean name of theCommunicatorLogger
to use. Otherwise all availableCommunicatorLogger
s will be used.
-
enableLoggingOnBean
Enables logging for a specificLoggingCapable
bean.- Parameters:
beanName
- The name of theLoggingCapable
bean.logger
- If given, the bean name of theCommunicatorLogger
to use. Otherwise all availableCommunicatorLogger
s will be used.
-
disableLogging
Disables logging for allLoggingCapable
beans. -
disableLoggingOnBean
Disables logging for a specificLoggingCapable
bean.- Parameters:
beanName
- The name of theLoggingCapable
bean.
-