Class LogObserveProvider

java.lang.Object
io.helidon.webserver.observe.log.LogObserveProvider
All Implemented Interfaces:
ConfiguredProvider<Observer>, ConfiguredProvider<Observer>, ObserveProvider

@Deprecated public class LogObserveProvider extends Object implements ObserveProvider
Deprecated.
only for ServiceLoader
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 Details

  • Method Details

    • configKey

      public String configKey()
      Deprecated.
      Description copied from interface: ObserveProvider
      Configuration key of this provider. The following keys must be honored by Observe support:
      • enabled - enable/disable the service
      • endpoint - endpoint, if starts with / then absolute, otherwise relative to observe endpoint
      • cors - CORS setup for this endpoint
      Specified by:
      configKey in interface ConfiguredProvider<Observer>
      Specified by:
      configKey in interface ConfiguredProvider<Observer>
      Specified by:
      configKey in interface ObserveProvider
      Returns:
      configuration key of this provider (such as health)
    • create

      public Observer create(Config config, String name)
      Deprecated.
      Description copied from interface: ConfiguredProvider
      Create a new instance from the configuration located on the provided node.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Specified by:
      create in interface ConfiguredProvider<Observer>
      Parameters:
      config - located at ConfiguredProvider.configKey() node
      name - name of the configured implementation
      Returns:
      a new instance created from this config node