1 2 Previous Next 16 Replies Latest reply on Apr 11, 2011 11:30 PM by jgreif Go to original post
      • 15. Re: log4j-appender seems not working in jboss-logging (AS6 final)
        shoemael

        I've been working on porting an application with database logging to AS6 and discovered that any Handlers that are added to the logging system during startup are removed on the startup of the Jboss logging service.  I get all my application bootstrap (contextListener) logs until org.jboss.logmanager.LogService.start() is called.  The last log message is "Removing bootstrap log handlers" issued by LogService.  On server shutdown the handlers are restored so I get the shutdown logging but no logging while the application is up and running.  Why are custom handlers removed from the log stream?  There doesn't appear to be any way to hook into the logging system progamatticaly to respond to this event and re-initiate my custom handler.  If I deploy my application after the server startup is complete the handler works perfectly.  It's only when the application is already present (as a .ear) in the deploy directory that the handler is removed.

        • 16. log4j-appender seems not working in jboss-logging (AS6 final)
          jgreif

          Note that jboss.util.logging.OnlyOnceErrorHandler does not exist in JBoss 6.0.0 Final.  Maybe org.apache.log4j.helpers.OnlyOnceErrorHandler will work.

          1 2 Previous Next