I am wondering if there is a way to log only warnings and errors on system level but allow information logs through application level. I am not sure if saying system level is correct here. What I mean are all of those automatic information logs:
I don't need logs above and by turning those off a lot of read write operations would be reduced which is the goal here.
I found out that if I change the minimum-level in serilog.config to "warning":
its only logging warnings and errors but its also blocking application logs on information level, even though they are explicitly logged by the logger in code. I need those application info logs.
the answer was right in the serilog.confg itself as a comment.
<!-- NOTE: This is how sources can have a different level -->
<!--
<add key="serilog:minimum-level:override:Umbraco.Core.Composing.TypeLoader" value="Warning" />
-->
update: it really helped to optimize the performance of the platform.
Serilog - Reduce system logs
Hi!
I am wondering if there is a way to log only warnings and errors on system level but allow information logs through application level. I am not sure if saying system level is correct here. What I mean are all of those automatic information logs:
I don't need logs above and by turning those off a lot of read write operations would be reduced which is the goal here.
I found out that if I change the minimum-level in serilog.config to "warning":
its only logging warnings and errors but its also blocking application logs on information level, even though they are explicitly logged by the logger in code. I need those application info logs.
Any ideas?
Thanks
Dee
the answer was right in the serilog.confg itself as a comment.
update: it really helped to optimize the performance of the platform.
is working on a reply...