Class LoggersSettings.Builder

java.lang.Object
org.apache.juneau.rest.server.management.LoggersSettings.Builder
Enclosing class:
LoggersSettings

public static class LoggersSettings.Builder extends Object
Builder for LoggersSettings.
  • Constructor Details

  • Method Details

    • enableWrite

      Enables the PUT/POST set-level endpoints.
      Returns:
      This object.
    • backend

      Explicitly declares the LogBackend the /loggers endpoint drives.

      When not set, the endpoint drives java.util.logging. Pass a Logback / Log4j2 backend (from juneau-rest-server-management-logging) or a custom implementation to drive a different backend — this is the explicit opt-in; the endpoint does not auto-detect.

      Parameters:
      value - The backend. null resets to the JUL default.
      Returns:
      This object.
    • build

      Builds the settings.
      Returns:
      A new LoggersSettings.