spring-attic / spring-native

Spring Native is now superseded by Spring Boot 3 official native support
https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html
Apache License 2.0
2.74k stars 356 forks source link

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

Closed jdbcplusnet closed 1 year ago

jdbcplusnet commented 1 year ago

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

image

Thanks in advance.

sdeleuze commented 1 year ago

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 https://github.com/spring-projects/spring-boot/issues/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).