Skip to content

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