we are using Jboss 4.2 and we need to implement apache commons logging in to our project. I can logging the statements in server.log but we need to log application level logs to different file. where we need to do in Jboss AS.
JBoss AS uses the file server/xxx/conf/jboss-log4j.xml to configure logging. Add an appender in that file for the log file you want, and add one or more category entries for things you want to log there. Here's a partial example from JBoss in Action:
I found that and changed to different log name. But here when I start the server, the logs statements are writing to log file and int increasing. I dont want server logs I want only application logs. How to avoid those?