My assumption is that these overrides suppress framework-generated logs while allowing application logs to follow the Default level, but I'd like to confirm that understanding.
Has anyone configured Optimizely CMS / Commerce applications with Serilog and Application Insights and can explain how these settings interact?
Additional Question
One more thing I'm trying to understand:
If Information logs are already being generated by the application, is there a way to verify whether they exist in Application Insights even if they're not visible in the standard Logs/Failures views?
For example:
Can I use any specific queries to check whether Information logs are being ingested?
Is there a specific table (traces, AppTraces, etc.) that I should query?
Is there a way to determine whether the logs were filtered out by Serilog before reaching Application Insights versus being stored but hidden by the current view/filter settings?
Hi everyone,
I'm trying to better understand how logging configuration works in an Optimizely CMS 12 application using Serilog and Application Insights.
Below is a simplified version of our current configuration:
Based on this configuration, my understanding is:
WarningWarning,Error, andCriticallogs should be emitted by SerilogHowever, in several places in our application we are writing logs like:
These
Informationlogs do not appear in Application Insights.My questions are:
MinimumLevel.Defaultis set toWarning?Informationlogs in Application Insights, do I need to change:Serilog:MinimumLevel:DefaulttoInformationLogging:ApplicationInsights:LogLevel:DefaulttoInformationMy assumption is that these overrides suppress framework-generated logs while allowing application logs to follow the
Defaultlevel, but I'd like to confirm that understanding.Has anyone configured Optimizely CMS / Commerce applications with Serilog and Application Insights and can explain how these settings interact?
Additional Question
One more thing I'm trying to understand:
If
Informationlogs are already being generated by the application, is there a way to verify whether they exist in Application Insights even if they're not visible in the standard Logs/Failures views?For example:
Informationlogs are being ingested?traces,AppTraces, etc.) that I should query?Thanks in advance!