Filtering packages from stacktrace in

2021-08-28 Thread Atle Tokle
When using PatternLayout you can use a filter to suppress stack frames form stack trace. >From doc:Use {filters(*packages*)} where *packages* is a list of package names to suppress matching stack frames from stack traces Is the same possible for the JSON Template Layout? Best regards Atle

MapMessage and JsonLayout is not producing json

2018-02-13 Thread Atle Tokle
I add key/values to logging using MapMessage like this. logger.info(new MapMessage().with("key1", "value1").with("key2", "value2")); I see that the MapMessage can format messages as key="value", json and XML. I use a JsonAppender to ouput a format that is easy indexable by our log-management syst