I finally able to resolve this issue. i was extracting Prweb.war and repacakging it on my windows machine by using jar commands. For some reason the WEB INF folder was missing after repacakaging. so instead of extraction i only replaced prlog4j2.xml by using command jar -uvf and redeployed it. all the log files are now being created in customized target folder.