I tried it as well, doesn't work, I still get log messages.
One thing that may be related is that we use Serilog, but I am not sure if it's related.
I found similar topic at https://discuss.elastic.co/t/dotnet-6-0-log-level-setting/315258/2 and tried to upgrade my apm library but it doesn't seem to resolve the issue.
The default log level if unconfigured is Error, yet you have Debug logs showing up too, so something is causing it to be configured at that level. It may depend on your use of Serilog.
Can you share the exact code portions for your app configuration setup (are you using IConfguration?), how you have configured Serilog, and how you registered the agent? That will help us understand the context better.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.