Package io.micronaut.servlet.undertow
Class UndertowConfiguration.AccessLogConfiguration
java.lang.Object
io.micronaut.servlet.undertow.UndertowConfiguration.AccessLogConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- UndertowConfiguration
@ConfigurationProperties("access-log")
@Requires(property="micronaut.server.undertow.access-log.enabled",
value="true")
public static class UndertowConfiguration.AccessLogConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
The access log configuration.
- Since:
- 4.8.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAccessLogConfiguration
(ExecutorService executorService) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.server.handlers.accesslog.DefaultAccessLogReceiver.Builder
boolean
void
setEnabled
(boolean enabled) void
setPattern
(String pattern) Sets the underlow log pattern.
-
Field Details
-
PREFIX
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
AccessLogConfiguration
Default constructor.- Parameters:
executorService
- The executor to use
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled
- Sets whether enabled.
-
getPattern
- Returns:
- The log pattern to use.
-
setPattern
Sets the underlow log pattern.See https://undertow.io/javadoc/1.4.x/io/undertow/server/handlers/accesslog/AccessLogHandler.html for more.
- Parameters:
pattern
- The pattern
-
getBuilder
public io.undertow.server.handlers.accesslog.DefaultAccessLogReceiver.Builder getBuilder()- Returns:
- The log receiver builder.
-