Why is Application Insights library not collecting all logs on my java spring boot application?
I am running a spring boot application with Java 8 and log4j.
I setup application insights v3 (https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot#programmatic-configuration). I have followed all of the steps in this doc and I am getting some logs and some telemetry data sent to my Insights instance. However, the most critical logs of my application are not being captured. I have ensured that the log4j log level is set to INFO and I have set the env varable APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL=INFO as called out here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#auto-collected-logging
Yet, my critical logs are not captured. I am seeing some of the logs, but not the ones I need most.