Steeltoe
Steeltoe copied to clipboard
Support Log Groups
A recent change in Spring Boot Admin that added support for Spring Boot Log Groups was implemented in a way that breaks when trying to use the Steeltoe Loggers endpoint.
Describe the solution you'd like
Steeltoe to have support for log groups
Describe alternatives you've considered
- [x] #1414
Additionally, it would be nice to order the components in the response in descending order of status, so that failures appear at the top of the list.
For further reference:
- https://docs.spring.io/spring-boot/reference/features/logging.html#features.logging.log-groups
- https://www.baeldung.com/spring-boot-log-groups
- https://docs.spring.io/spring-boot/reference/actuator/loggers.html
Sample output:
{
"levels": [
"OFF",
"FATAL",
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE"
],
"loggers": {...},
"groups": {
"web": {
"members": [
"org.springframework.core.codec",
"org.springframework.http",
"org.springframework.web",
"org.springframework.boot.actuate.endpoint.web",
"org.springframework.boot.web.servlet.ServletContextInitializerBeans"
]
},
"sql": {
"members": [
"org.springframework.jdbc.core",
"org.hibernate.SQL",
"org.jooq.tools.LoggerListener"
]
}
}
}