Abhishek Singh
Abhishek Singh

Reputation: 1

Logging level config is not working for openjdk alpine slim

I'm running a Spring Boot application that configures its logging level via application.yaml:

logging:
  level:
    io.opentelemetry.sdk.metrics.internal.state.AsynchronousMetricStorage: ERROR

This application having a docker image which have RUN_IMAGE = adoptopenjdk/openjdk11:alpine-slim. But this logging configuration does not seem to take effect (i.e. WARN/INFO logs from that package still appear).

However, when I change my base image to: RUN_IMAGE = eclipse-temurin:11-jre-alpine, the logging level configuration works as expected.

What are the differences between these two base images that might affect how Spring Boot's logging configuration is applied? Are there any known differences in default logging setups or JVM/system properties between adoptopenjdk/openjdk11:alpine-slim and eclipse-temurin:11-jre-alpine that could cause this discrepancy? Any pointers or resources that explain these differences would be greatly appreciated.

Upvotes: 0

Views: 24

Answers (0)

Related Questions