Logs are an important asset for any web/console based application. It helps use to debug how the application is behaving during development or production systems. Apache Log4J is one of the most widely used logging framework for Java based applications.
Well above was some introduction to logs and Apache Log4J. Now let’s go to the mood point, Strut2 is an widely used MVC for Java based web applications. In general configuration of Struts2 is pretty straight forward. However when we see the logs we see lot of exceptions from Struts2 which are just an warning. But because of this warnings we might miss the actual exception. In this article we would learn how we can disable the warning logs from Struts2.