Class LogObserveProvider
java.lang.Object
io.helidon.webserver.observe.log.LogObserveProvider
- All Implemented Interfaces:
ConfiguredProvider<Observer>, ObserveProvider
Logging observe provider implementation, discoverable through
ServiceRegistry and ServiceLoader.
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
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfiguredProvider
createModifier and TypeMethodDescriptiondefault Observercreate(Config config, String name, ServiceRegistry serviceRegistry) Create a new instance from configuration using services from the registry which owns the configured instance.Methods inherited from interface ObserveProvider
type
-
Constructor Details
-
LogObserveProvider
public LogObserveProvider()Required public constructor forServiceLoader.
-
-
Method Details
-
configKey
Description copied from interface:ObserveProviderConfiguration key of this provider. The following keys must be honored by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpointcors- CORS setup for this endpoint
- Specified by:
configKeyin interfaceConfiguredProvider<Observer>- Specified by:
configKeyin interfaceObserveProvider- Returns:
- configuration key of this provider (such as
health)
-
create
Description copied from interface:ConfiguredProviderCreate a new instance from the configuration located on the provided node.- Specified by:
createin interfaceConfiguredProvider<Observer>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-