spring-attic / spring-native

Spring Native is now superseded by Spring Boot 3 official native support

Home Page:https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring-Boot Actuator 2.7.1 loggers endpoint is not working with Spring Native 0.12.1

jdbcplusnet opened this issue · comments

I was trying to migrate Spring-Boot microservice to native, but I was some error with Spring-Boot-Actuator for get / change loggers in realtime.

The /actuator/loggers endpoint returns HTTP 500 error and I have created my own LoggerEndpoint for trying to solve this issue, but it seems that the org.springframework.boot.logging.logback.LogbackLoggingSystem does not get loggers configuration properly so I got empty loggers:

image

This is because the method getLoggerConfigurations() from LogbackLoggingSystem is not working propertly:

image

Versions used as described in documentacion: https://docs.spring.io/spring-native/docs/current/reference/htmlsingle

  • Spring-Boot 2.7.1
  • Spring Native 0.12.1

image

Thanks in advance.

On my side, I see a 404 error not a 500 one, but indeed it is broken. Since we are focusing on Spring Boot 3 native support these days, I have testing with Spring Boot 3 M5 and saw the same issue, so I have created spring-projects/spring-boot#32483 that you can follow to track the resolution of this issue on Spring Boot 3 side (we won't fix it on Spring native side).