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
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Does this issue relate to a new feature or an existing bug?
Bug
New Feature
Please describe the current behavior?
The LoggerSinkConfiguration.Elasticsearch() method allows you to specify a minimum logging level, but does not have an option to pass in a LoggingLevelSwitch object through which the minimum logging level can be changed at runtime.
Adding this object would allow a user to set a different log level for the ElasticSearch sink compared to any other sinks in use.
Note that the object can simply be passed immediately to the LoggerSinkConfiguration.Sink() method and does not require any actual implementation.
Please describe the expected behavior?
There should be a LoggingLevelSwitch property in the ElasticsearchSinkOptions class to enable use of this feature. Many Serilog sinks (including Console and File) have this option.
I will shortly submit a PR to add this property.
The text was updated successfully, but these errors were encountered:
Does this issue relate to a new feature or an existing bug?
Please describe the current behavior?
The
LoggerSinkConfiguration.Elasticsearch()
method allows you to specify a minimum logging level, but does not have an option to pass in aLoggingLevelSwitch
object through which the minimum logging level can be changed at runtime.Adding this object would allow a user to set a different log level for the ElasticSearch sink compared to any other sinks in use.
Note that the object can simply be passed immediately to the
LoggerSinkConfiguration.Sink()
method and does not require any actual implementation.Please describe the expected behavior?
There should be a
LoggingLevelSwitch
property in theElasticsearchSinkOptions
class to enable use of this feature. Many Serilog sinks (including Console and File) have this option.I will shortly submit a PR to add this property.
The text was updated successfully, but these errors were encountered: