Open
Description
According to #293 (comment) the 'New expression package uses shorter syntax (CLEF) for expressions.'
as such, the WriteTo:ConditionalSink sink in sample application does not work as expected. @Level
should be @l
"WriteTo:ConditionalSink": {
"Name": "Conditional",
"Args": {
"expression": "@Level in ['Error', 'Fatal']",
"configureSink": [
{
"Name": "File",
"Args": {
"path": "%TEMP%/Logs/serilog-configuration-sample-errors.txt",
"formatter": {
"type": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact",
"valueFormatter": {
"typeTagName": "customTypeTag"
}
}
}
}
]
}
}