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

Add support for for formatting short level names via `ToString()` #74

Closed nblumhardt closed 2 years ago

nblumhardt commented 2 years ago

Fixes #69

This makes the format specifiers accepted for levels consistent between the template syntax {@l:u3} and function-call syntax {ToString(@l, 'u3')}.