Skip to content

Default rest() to ignore message templates by default #49

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 1 commit into from
Jun 21, 2021

Conversation

nblumhardt
Copy link
Member

This is not always desirable behavior, and since it has a perf cost, it might as well be the opt-in:

Function Description
Rest([deep]) In an ExpressionTemplate, returns an object containing the first-class event properties not otherwise referenced in the template. If deep is true, also excludes properties referenced in the event's message template.

LinqExpressionCompiler now uses method argument names and default values when binding function calls, so user-defined functions can have optional arguments, and we don't have to add custom rewrite rules for every function with optional args.

…; default rest() to use shallow template inspection
@nblumhardt nblumhardt merged commit 144be33 into serilog:dev Jun 21, 2021
@nblumhardt nblumhardt mentioned this pull request Jun 21, 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