2 Replies Latest reply on Apr 1, 2014 3:34 PM by amsokol19

    How to configure log4j for switchyard app?

    amsokol19

      Dear All,

       

      Is it possible to configure log4j for switchyard app?

      Where should I put log4j.properties (log4j.xml) file inside switchyard app jar?

       

      Thanks,

      Alexander

        • 1. Re: How to configure log4j for switchyard app?
          kcbabo

          You can configure the logger used by your application in standalone.xml as part of the logging subsystem.  If you need to package your log4j.xml inside your application vs. configuring it via standalone.xml, then you need to exclude the AS log4j from your application using jboss-deployment-structure.xml and then package your own log4j with the app (which means WAR or EAR deployment).  There are a number of threads on that approach which can be found with a Google search.

          • 2. Re: How to configure log4j for switchyard app?
            amsokol19

            Hello Keith,

             

            Understood.

            Thank you very much.

             

            Alexander