You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great to support JSON format for logs generated during startup.
Describe the Enhancement
As is a common practice, we configured all containers to spit out logs in JSON format. However for Java (Spring Boot) application, during startup there's a few lines that are not managed by the application:
Setting Active Processor Count to 2
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx1643814K -XX:MaxMetaspaceSize=146137K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 2G, Thread Count: 50, Loaded Class Count: 23387, Headroom: 0%)
Enabling Java Native Memory Tracking
Adding 124 container CA certificates to JVM truststore
Spring Cloud Bindings Enabled
Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -XX:+ExitOnOutOfMemoryError -XX:ActiveProcessorCount=2 -XX:MaxDirectMemorySize=10M -Xmx1643814K -XX:MaxMetaspaceSize=146137K -XX:ReservedCodeCacheSize=240M -Xss1M -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics -Dorg.springframework.cloud.bindings.boot.enable=true
Ideally it would be nice to let the user to configure the container to spit the above logs in JSON format.
Possible Solution
If this is not possible, another alternative would be to let the user to turn them off (if they're just info) and leave warn and error messages on.
Motivation
Simpler log aggregator configuration.
The text was updated successfully, but these errors were encountered:
Would be great to support JSON format for logs generated during startup.
Describe the Enhancement
As is a common practice, we configured all containers to spit out logs in JSON format. However for Java (Spring Boot) application, during startup there's a few lines that are not managed by the application:
Ideally it would be nice to let the user to configure the container to spit the above logs in JSON format.
Possible Solution
If this is not possible, another alternative would be to let the user to turn them off (if they're just
info
) and leavewarn
anderror
messages on.Motivation
Simpler log aggregator configuration.
The text was updated successfully, but these errors were encountered: