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

Multiple exclusion for RequestPath #37

Closed biplovkc closed 3 years ago

biplovkc commented 3 years ago

Health request exclusion works fine, but when I call my api it loads redoc and other js or json files This works fine Filter.ByExcluding("RequestPath like '/health%'") but following does not Filter.ByExcluding("RequestPath like '/health%' or '/redoc%'") following does not even compile Filter.ByExcluding("RequestPath like '/health%' or like '/redoc%'") Second or(i.e. redoc) is still logged. Anything I am doing wrong?

nblumhardt commented 3 years ago

Hi! You'll need:

Filter.ByExcluding("RequestPath like '/health%' or RequestPath like '/redoc%'")

HTH!

biplovkc commented 3 years ago

Hi! You'll need:

Filter.ByExcluding("RequestPath like '/health%' or RequestPath like '/redoc%'")

HTH!

yes this worked thank you

nblumhardt commented 3 years ago

Great, thanks for the follow-up 👍