Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-1472

Logging levels should never be set programatically, that's why we have log4j.xml!!!

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.4 Final, 2.4.1 Final, 2.4.1 SP1, 2.6.CR2
    • Fix Version/s: 2.6 CR3, 2.4.2 Final
    • Component/s: Portal CMS
    • Labels:
      None

      Description

      I have spent two days with 3 support customers explaining them how to set TRACE level logs
      for org.jboss.cache without success. They could never get it to work.

      Eventually, I have found the culprit:

      org.jboss.portal.cms.impl.jcr.JCRCMS

      //set the proper logging level for JBossCache and JGroups
      Logger cacheLogger = Logger.getLogger("org.jboss.cache");
      cacheLogger.setLevel(Level.ERROR);
      Logger groupsLogger = Logger.getLogger("org.jgroups");
      groupsLogger.setLevel(Level.ERROR);

      This code should be removed immediately.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                soshah Sohil Shah
                Reporter:
                galder.zamarreno Galder ZamarreƱo
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: