Steeltoe icon indicating copy to clipboard operation
Steeltoe copied to clipboard

Support Log Groups

Open TimHess opened this issue 1 year ago • 2 comments

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

TimHess avatar Dec 02 '24 23:12 TimHess

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.

bart-vmware avatar Feb 17 '25 13:02 bart-vmware

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"
            ]
        }
    }
}

bart-vmware avatar Mar 04 '25 12:03 bart-vmware