diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java index 39af58e6c6..e868383866 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java @@ -412,9 +412,11 @@ public class UndertowEmbeddedServletContainerFactory private AccessLogHandler createAccessLogHandler(HttpHandler handler) { try { createAccessLogDirectoryIfNecessary(); - String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix : "access_log."); + String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix + : "access_log."); AccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver( - createWorker(), this.accessLogDirectory, prefix, this.accessLogSuffix); + createWorker(), this.accessLogDirectory, prefix, + this.accessLogSuffix); String formatString = (this.accessLogPattern != null) ? this.accessLogPattern : "common"; return new AccessLogHandler(handler, accessLogReceiver, formatString,