Replies: 2 comments 2 replies
-
Yes, correct. If you will set that flag, you will get the logs from the level you provided and higher |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do you have an example? I cannot find restrictedToMinimumLevel parameter in LokiHttp extension method, or in LokiSinkConfiguration class. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Scenario - two sinks, one for file and one for Loki. I would like to log everything to file (MinimumLevel=Verbose), and only important messages to Loki (MinimumLevel=Information). Is this possible?
If I set MinimumLevel=Verbose to LoggerConfiguration, then Loki will log everything.
If I set MinimumLevel=Information to LoggerConfiguration, then File logger won't log anything below Information level.
I think we would need 'restrictedToMinimumLevel' flag in LokiSinkConfiguration?
Beta Was this translation helpful? Give feedback.
All reactions