Package io.micronaut.servlet.jetty
Class JettyConfiguration.JettyRequestLog
java.lang.Object
io.micronaut.servlet.jetty.JettyConfiguration.JettyRequestLog
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- JettyConfiguration
@ConfigurationProperties("access-log")
@Requires(property="micronaut.server.jetty.access-log.enabled",
value="true")
public static class JettyConfiguration.JettyRequestLog
extends Object
implements io.micronaut.core.util.Toggleable
Jetty access log configuration.
- Since:
- 4.8.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
The pattern to use for the access log.boolean
void
setEnabled
(boolean enabled) Whether access log is enabled.void
setPattern
(String pattern) Sets the pattern to use for the access log.
-
Field Details
-
ACCESS_LOG
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
JettyRequestLog
public JettyRequestLog()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Whether access log is enabled.- Parameters:
enabled
- True if it is enabled.
-
getPattern
The pattern to use for the access log. Defaults toEXTENDED_NCSA_FORMAT
.- Returns:
- The pattern.
-
setPattern
Sets the pattern to use for the access log. Defaults to CustomRequestLog.EXTENDED_NCSA_FORMAT.- Parameters:
pattern
- The pattern
-