Skip to content

Add more support for some configuration methods #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tsimbalar opened this issue Jul 19, 2018 · 0 comments · Fixed by #140
Closed

Add more support for some configuration methods #121

tsimbalar opened this issue Jul 19, 2018 · 0 comments · Fixed by #140

Comments

@tsimbalar
Copy link
Member

This is the equivalent to serilog/serilog#1194

There is no reason not to support the following methods in key-value settings provider :

  • WriteTo.Sink(ILogEventSink logEventSink, LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum, LoggingLevelSwitch levelSwitch = null)
  • AuditTo.Sink(ILogEventSink logEventSink, LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum, LoggingLevelSwitch levelSwitch = null)
  • Enrich.With(params ILogEventEnricher[] enrichers) (with surrogate Enrich.With(ILogEventEnricher enricher) )
  • Filter.With(params ILogEventFilter[] filters) (with surrogate Enrich.With(ILogEventFilter filter) )

The parameters that are an interface can be provided either by specifying the qualified type name of an implementing class that has a default constructor, or referencing a static property/field (see #71 , #73 ).

@tsimbalar tsimbalar changed the title Add more support for some configuration methods through key-value settings Add more support for some configuration methods Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant