log4j 2 configuration for writing all the logs to a file
Here is an example of a configuration which would write all the logs to a file and once a size limit has been reached it will create a history file for the logs in a folder. So let us see the xml configuration then: So the above configuration will create a tomcat.log file in the … Read more