Class LogConfig

java.lang.Object
io.helidon.logging.common.LogConfig

public final class LogConfig extends Object
Logging configuration utility. This utility looks for logging provider and configures it either for initialization or for runtime.

Initialization is done automatically at GraalVM native image build (through Helidon feature). Runtime initialization is done automatically when using a container (such as Helidon MP), for Helidon SE (and programmatic API) it is recommended to invoke configureRuntime() as the first thing in your application, so all logs are correctly handled.

  • Method Details

    • configureRuntime

      public static void configureRuntime()
      Reconfigures logging with runtime configuration if within a native image. See GraalVM native image support in Helidon.
    • initClass

      public static void initClass()
      This method is for internal use, to correctly load logging configuration at AOT build time.