0 Replies Latest reply on Jun 17, 2005 4:48 PM by zedonis

    Adding a custom log4j Appender

    zedonis

      I have created a custom log4j Appender for my application to use. So far, I have only been able to deploy it by doing the following steps:

      1) build a jar file that only contains my class (including classes in the .sar and .ear files cause problems later)
      2) Copy that jar file to the <JBOSS-HOME>/lib directory
      3) modify the run.bat file so that the new jar, and the log4j-boot.jar are included on the classpath
      4) modify my conf/log4j.xml file to use the new Appender

      After this, it looks like the Appender is deployed. I also need to do more classpath changes to get Eclipse to run the server in debug mode.

      So, my question is: is this the best way to do this? This application will need to be deployed on fresh systems very often, so I would like to avoid steps that can't be easily automated. I also want to avoid having lots of little file spread around the directory structure, as it will make it more difficult to maintain.