You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to use Serilog in a .NET Core project (using appsettings.json) in conjunction with the File / RollingFile sinks and have the entire thing be configurable at runtime (using the Serilog.Settings.Configuration). I noticed that there is a performance hit when doing that (at scale), so I was thinking about using the AsyncWrapper to reduce the potential I/O bottleneck.
Unfortunately, the project says it has no support for appsettings.json and I was not able to tell how to make the two sinks work together. If there is, please disregard the rest of my email and please let me know how to do it. If there is not...
Fortunately, I am willing to make this change myself and contribute it here :) - I am just wondering what is a good way to do it.
The way that I thought of it, there would be a "UseAsync" attribute on one of the "WriteTo" objects (default = false if the attribute does not exist) as below:
(Unfortunately the syntax of the JSON configuration provider is a little verbose here - we'd like to refine it further but haven't got a solid idea of where to take it yet. Thanks for the UseAsync suggestion.)
Hi
I am looking to use Serilog in a .NET Core project (using appsettings.json) in conjunction with the File / RollingFile sinks and have the entire thing be configurable at runtime (using the Serilog.Settings.Configuration). I noticed that there is a performance hit when doing that (at scale), so I was thinking about using the AsyncWrapper to reduce the potential I/O bottleneck.
Unfortunately, the project says it has no support for appsettings.json and I was not able to tell how to make the two sinks work together. If there is, please disregard the rest of my email and please let me know how to do it. If there is not...
Fortunately, I am willing to make this change myself and contribute it here :) - I am just wondering what is a good way to do it.
The way that I thought of it, there would be a "UseAsync" attribute on one of the "WriteTo" objects (default = false if the attribute does not exist) as below:
Thoughts, opinions?
The text was updated successfully, but these errors were encountered: