I've seen examples of multiple when filters using XML but I'm using appsettings.json for all configuration. I've been able to implement a single when filter but when I try to add an additional filter I get a duplicate key error. Any ideas?
This works -
"rules": [
{
"logger": "*",
"minLevel": "Debug",
"writeTo": "db",
"filters": {
"when": {
"condition": "equals('${event-properties:sublevel}','diagnostic')",
"action": "Ignore"
}
}
}
]