Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-8332

By stdout setting, spring-boot-starter-undertow's access log is mixed up with runtime log

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CSB-4.next
    • CSB-4.14
    • Spring Boot
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Very Likely
    • 0

      For Openshift/k8s environment, it's common for application pods to output log into stdout.
      However, by stdout setting, spring-boot-starter-undertow's access log is mixed up with runtime log.[1]
      To avoid the issue, EAP undertow subsystem has an option, "use-server-log=true". With the option, undertow access log handler will use the same logging framework used by the EAP runtime and the option will resolve the mixing log issue.[2]
      Please consider implementing a same kind of option for CSB too.

      [1]
      For logging access log, spring-boot-starter-undertow uses DefaultAccessLogReceiver which does not use the same logging framework used by the Spring Boot application.
      https://github.com/spring-projects/spring-boot/blob/3.4.x/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/AccessLogHttpHandlerFactory.java#L61-L69
      https://github.com/undertow-io/undertow/blob/2.3.x/core/src/main/java/io/undertow/server/handlers/accesslog/DefaultAccessLogReceiver.java

      [2]
      https://github.com/wildfly/wildfly/blob/main/undertow/src/main/java/org/wildfly/extension/undertow/AccessLogService.java#L85-L114
      https://github.com/undertow-io/undertow/blob/2.3.x/core/src/main/java/io/undertow/server/handlers/accesslog/JBossLoggingAccessLogReceiver.java

              Unassigned Unassigned
              rhn-support-hfuruich Hisao Furuichi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: