[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1472) Logging levels should never be set programatically, that's why we have log4j.xml!!!

Julien Viet (JIRA) jira-events at lists.jboss.org
Tue Jun 5 15:59:10 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPORTAL-1472?page=comments#action_12364281 ] 
            
Julien Viet commented on JBPORTAL-1472:
---------------------------------------

lol, ok we understand how it is from support point of view.

from developer point of view sometime it's easier to do stuff like that to shutup verbose logging.

at least you never used jackrabbit which has a shitty logging system :-)

please apologize and peace.

> Logging levels should never be set programatically, that's why we have log4j.xml!!!
> -----------------------------------------------------------------------------------
>
>                 Key: JBPORTAL-1472
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1472
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal CMS
>    Affects Versions: 2.6.CR2, 2.4.1 SP1, 2.4.1 Final, 2.4 Final
>            Reporter: Galder Zamarreno
>         Assigned To: Sohil Shah
>            Priority: Blocker
>             Fix For: 2.6 Final
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list