Skip to content

Improve parameter binding and allow user-defined parameter types #43

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

Merged
merged 2 commits into from
Jun 4, 2021

Conversation

nblumhardt
Copy link
Member

  • Allow all functions to accept a LogEvent parameter
  • Adds virtual NameResolver.TryBindFunctionParameter() to support user-defined function parameter types
  • Combine these to implement a Rest() function, usable in templates only, that matches the behavior of {Properties} in Serilog output templates (i.e. all properties not referenced elsewhere in the template or message)
  • Bump version to 3.1.0 (added feature)

With this one I think we're finally feature-complete.

…ugh NameResolver; implement the Rest() function in templates, based on this.
@nblumhardt nblumhardt merged commit 44e69de into serilog:dev Jun 4, 2021
@nblumhardt nblumhardt mentioned this pull request Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant