I am trying to introduce Lombook to my project but logging doesn't work. According to documentation servlet filter adding is enough for start working with default setups. I has added servlet to web.xml but logging doesn't work.
<filter>
<filter-name>LogbookFilter</filter-name>
<filter-class>org.zalando.logbook.servlet.LogbookFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LogbookFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
</filter-mapping>
Could you please advise what should I do for logging correct work with tracing to defined file? Should I configure log4j2 for that and if Yes, in what way?
Thanks in advance