Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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":
<add key="serilog:minimum-level" value="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" />
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted