3 Replies Latest reply on Jul 24, 2012 1:23 PM by jamezp

    Per-deployment logging configuration

    lfryc

      Hi guys,

       

      I cannot find any sample how to configure per-deployment logging, implemented in AS7-514.

      Note that I'm running EAP 6 (JBoss AS 7.1.2).

       

      I would like turn on debug logging with my WAR built with Arquillian

       

      I tried to provide custom WEB-INF/classes/logging.properties (as discussed here [1]),

      but it does not obviously do the trick.

       

      [1] http://jboss-as7-development.1055759.n5.nabble.com/logger-config-per-deployment-app-td5709805.html

        • 1. Re: Per-deployment logging configuration
          jamezp

          This only works for log messages that are logged in that specific application. If the log messages are from the system, e.g. messages from a subsystem, then the included logging configuration will not be used.

           

          I'm making some assumptions that you're trying to turn on some system level debugging stuff. If I'm wrong let me know.

           

          --

          James R. Perkins

          • 2. Re: Per-deployment logging configuration
            lfryc

            I'm trying to turn on debugging for libraries included in WAR (org.richfaces),

             

            but additionally I want to turn on debugging for JSF subsystem (javax.faces),

            so if I understand it well, this is not possible.

            • 3. Re: Per-deployment logging configuration
              jamezp

              That was my guess on what you were trying to do . It might work for org.richfaces if the library is loaded by the same class loader. I haven't tested it though.

               

              There might be a way to turn on debug logging from the management API. I really need to become more familiar with Arquillian, but if you could run a CLI script or something before your application deploys that could work.

               

              --

              James R. Perkins