logfellow / logstash-logback-encoder

Logback JSON encoder and appenders
Apache License 2.0
2.43k stars 407 forks source link

Allow dropping paths #992

Open joca-bt opened 10 months ago

joca-bt commented 10 months ago

Masking allows us to mask arbitrary paths when logging an object. However, sometimes we have the need to not log a particular field at all. While we can achieve this by making a copy of the object or modifying the original field to null, I was wondering if this could be achieved in a way similar to masking and whether it would be useful for other people as well.