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 final class JettyConfiguration.JettyRequestLog
extends Object
implements io.micronaut.core.util.Toggleable
Jetty access log configuration.
- Since:
- 4.8.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull String
The pattern to use for the access log.boolean
boolean
isQuiet()
void
setEnabled
(boolean enabled) Whether access log is enabled.void
setFileName
(String fileName) void
setPattern
(String pattern) Sets the pattern to use for the access log.void
setQuiet
(boolean quiet) void
setResourcePath
(String resourcePath)
-
Field Details
-
ACCESS_LOG
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
JettyRequestLog
public JettyRequestLog()
-
-
Method Details
-
getFileName
-
setFileName
- Parameters:
fileName
- sets the fileName attribute forRequestLogImpl
.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
getResourcePath
-
setResourcePath
- Parameters:
resourcePath
- sets the resourcePath attribute forRequestLogImpl
.
-
isQuiet
public boolean isQuiet() -
setQuiet
public void setQuiet(boolean quiet) - Parameters:
quiet
- sets the quiet attribute forRequestLogImpl
.
-
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
-