serilog / serilog-expressions

An embeddable mini-language for filtering, enriching, and formatting Serilog events, ideal for use with JSON or XML configuration.
Apache License 2.0
193 stars 17 forks source link

Porting from Serilog.Filters.Expressions: Missing @Message @MessageTemplate etc #63

Closed warrenbuckley closed 2 years ago

warrenbuckley commented 2 years ago

Hi @nblumhardt I am porting over from Serilog.Filters.Expressions and missing the possibility of expressions using a friendlier name for the built in properties rather than short hand version, as this will break any existing saved search expressions/queries when trying to migrate.

Is it possible to add support for the following:

@TimeStamp
@Level
@Message
@MessageTemplate
@Exception
@Properties['myProp']
nblumhardt commented 2 years ago

Hi @warrenbuckley!

There's nothing currently, but this has been on my radar for a while. If you're making the port and this is the last blocker, I'm on board with adding support for aliases. Are you reasonably confident that everything else you need for the port is supported?

warrenbuckley commented 2 years ago

Hi @nblumhardt I have done a PR to add this in to help with the port away from Serilog.Filters.Expressions Let me know what you think or feel free to edit/work in the same PR as needed

https://github.com/serilog/serilog-expressions/pull/66