I would like to log operations of my ejb jar deployed under JBoss 4.2.3.
The classic FileAppender doesn't work and log are written into server.log of JBoss log folder.
I managed to use FileAppender with org.jboss.logging.filter.TCLFilter in the jboss-log4j.xml. This works but I would like to have the log configuration in my application. Every applications (in my company) have a log4j embedded and loaded by Maven when packaging depending on the chosen profile. Is there a way to use org.jboss.logging.filter.TCLFilter directly in my EJB application ?
If not, do you know an other way to log in a file with an ejb packaged as jar ?
Thank a lot for your help.
Sorry, i did not completely understand what you are trying to do and what issues you are running into. Please post the details with an example maybe. But looking at the details that you have posted, i guess a better place to ask this question in the AS User forum http://www.jboss.org/index.html?module=bb&op=viewforum&f=287