Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16380

JBOSS 6.2 EAP doesnt print jdk logging.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • server
    • Hide
      Didnt realize it is in jboss tools. Created new one in jboss application server platform.

      https://issues.jboss.org/browse/JBEAP-42
      Show
      Didnt realize it is in jboss tools. Created new one in jboss application server platform. https://issues.jboss.org/browse/JBEAP-42

    Description

      We log request and response using com.sun.jersey.api.container.filter.LoggingFilter which uses java.util.logging.Logger . Application specific logs are getting printed with the below jboss-deployment-structure contents .
      <exclusions>
      <module name="org.apache.log4j" />
      <module name="org.slf4j.jcl-over-slf4j" />
      <module name="org.slf4j.impl" />
      <module name="org.slf4j" />
      <module name="org.slf4j.ext" />
      <module name="org.apache.commons.logging" />
      </exclusions>

      Debugged a lot but couldnt figure out why jdk logging is going to jboss server.log rather than the appender configured in log4j.properties.
      log4j.logger.com.sun.jersey.api.container.filter.LoggingFilter=INFO, RESTService
      log4j.additivity.com.sun.jersey.api.container.filter.LoggingFilter=false
      #requests to serve a log file

      log4j.appender.RESTService=com.macys.mobile.framework.logging.log4j.v1216.AsynchronousRollingFileAppender
      log4j.appender.RESTService.BufferSize=512
      log4j.appender.RESTService.Blocking=true
      log4j.appender.RESTService.File=${app.log.root}/rest.log
      log4j.appender.RESTService.DefaultConsoleThreshold=INFO
      log4j.appender.RESTService.ConsoleThreshold=INFO
      log4j.appender.RESTService.threshold=INFO

      1. Maximum file size and no: of back up files can be configured as per the production environment requirement
        log4j.appender.RESTService.MaxFileSize=100MB
        log4j.appender.RESTService.MaxBackupIndex=10

      Attachments

        Activity

          People

            Unassigned Unassigned
            gamvi01 Vineela Gampa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: