I am using wildfly as my application server. It has its own logging subsystem configured in standalone.xml file. Then what is the need for logging configuration in our application?
It really depends, but generally I would say there is no need for the logging configuration in your application. If you don't need any special handlers then there is actually an advantage to using the logging subsystem in WildFly.
If you use the web console, WildFly's CLI tool or some other form of management for WildFly then you can configure logging without having to restart the server or re-deploying your application. On the contrary if you include a logging configuration in your application and want to make a change you need to re-deploy your application.