Interface LoggersActuator
public interface LoggersActuator
Java interface for any node's loggers actuator. To instantiate this interface, you can use
Feign; see of(String) as an example.
You can use one of of(String) or of(ZeebeNode) to create a new client to use
for yourself.
Adding a new method is simple: simply define the input/output here as you normally would, and make sure to add the correct JSON encoding headers (`Accept` for the response type, `Content-Type` if there's a body to send).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggersActuatorof(TestApplication<?> node) Returns aLoggersActuatorinstance using the given node as upstream.static LoggersActuatorof(io.zeebe.containers.ZeebeNode<?> node) Returns aLoggersActuatorinstance using the given node as upstream.static LoggersActuatorReturns aLoggersActuatorinstance using the given endpoint as upstream.voidset(String id, LoggersActuator.LoggerInfo level) default voidA convenience method to set the level of a logger remotely via the Spring Boot actuator, using SLF4J levels as input to avoid any errors (e.g.
-
Method Details
-
of
Returns aLoggersActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
LoggersActuator
-
of
Returns aLoggersActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
LoggersActuator
-
of
Returns aLoggersActuatorinstance using the given endpoint as upstream. The endpoint is expected to be a complete absolute URL, e.g. "http://localhost:9600/actuator/loggers".- Parameters:
endpoint- the actuator URL to connect to- Returns:
- a new instance of
LoggersActuator
-
set
A convenience method to set the level of a logger remotely via the Spring Boot actuator, using SLF4J levels as input to avoid any errors (e.g. typos).- Parameters:
id- the logger ID, e.g. io.camunda.zeebe.gatewaylevel- the level you wish to set
-
set
-
get
-