I enabled logging http traffic by <logger name="io.micronaut.http.client" level="TRACE" additivity="false"/>
. But I want exclude health endpoint from logging. Is there some config for it? I found some settings at access logger, but it didn't affect these logs. I use log4j2 with xml config.
Asked
Active
Viewed 416 times
1

Roar S.
- 8,103
- 1
- 15
- 37

Andrew Sneck
- 724
- 9
- 18
-
Hi. You don't specify which logger you're using, but I guess it's logback. You should write a filter as described in the URL below. You may want to tag your question with the correct logger in order to get a working example. https://sematext.com/blog/logback-tutorial/ – Roar S. Mar 07 '22 at 18:21
-
I use log4j2 with xml config – Andrew Sneck Mar 08 '22 at 09:03
-
Thanks. I updated your question with tag log4j2. BR – Roar S. Mar 08 '22 at 16:39