Class LoggersSettings.Builder
java.lang.Object
org.apache.juneau.rest.server.management.LoggersSettings.Builder
- Enclosing class:
- LoggersSettings
Builder for
LoggersSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackend(LogBackend value) Explicitly declares theLogBackendthe/loggersendpoint drives.build()Builds the settings.Enables thePUT/POSTset-level endpoints.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableWrite
Enables thePUT/POSTset-level endpoints.- Returns:
- This object.
-
backend
Explicitly declares theLogBackendthe/loggersendpoint drives.When not set, the endpoint drives
java.util.logging. Pass a Logback / Log4j2 backend (fromjuneau-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.
-