update log4j config & add pager
to use gradle instead of maven