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 StringThe pattern to use for the access log.booleanbooleanisQuiet()voidsetEnabled(boolean enabled) Whether access log is enabled.voidsetFileName(String fileName) voidsetPattern(String pattern) Sets the pattern to use for the access log.voidsetQuiet(boolean quiet) voidsetResourcePath(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:
isEnabledin 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
-