java.lang.Object
io.helidon.nima.observe.log.LogObserveProvider
- All Implemented Interfaces:
ObserveProvider
ServiceLoader provider implementation for logging observe provider.
Java Util Logging uses weak references to loggers (and does not support adding level configuration to LogManager at runtime), so changing a log level for a logger may be temporary (in case a garbage collector runs and the reference is not kept anywhere). In Helidon, most loggers are referenced for the duration of the application, so this should not impact Helidon components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfiguration key of this provider.Default endpoint of this provider.voidregister(Config config, String componentPath, HttpRouting.Builder routing) Register the provider's services and handlers to the routing builder.
-
Constructor Details
-
LogObserveProvider
public LogObserveProvider()
-
-
Method Details
-
configKey
Description copied from interface:ObserveProviderConfiguration key of this provider. The following keys are reserved by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpoint
- Specified by:
configKeyin interfaceObserveProvider- Returns:
- configuration key of this provider (such as
health)
-
defaultEndpoint
Description copied from interface:ObserveProviderDefault endpoint of this provider. To define a relative path, do not include forward slash (such ashealthwould resolve into/observe/health).- Specified by:
defaultEndpointin interfaceObserveProvider- Returns:
- default endpoint under
/observe
-
register
Description copied from interface:ObserveProviderRegister the provider's services and handlers to the routing builder. The component MUST honor the provided component path.- Specified by:
registerin interfaceObserveProvider- Parameters:
config- configuration of this providercomponentPath- component path to register under (such as/observe/health, based on configured endpoint andObserveProvider.defaultEndpoint())routing- routing builder
-