You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/09/02 13:44:29 UTC

DO NOT REPLY [Bug 51758] New: Setting logger-specific overrides in logging.properties not working

https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

             Bug #: 51758
           Summary: Setting logger-specific overrides in
                    logging.properties not working
           Product: Tomcat 7
           Version: 7.0.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: gmazza@apache.org
    Classification: Unclassified


Logger-specific configuration is being ignored in the
$CATALINA_HOME/conf/logging.properties file.

Problem was asked (and unanswered) here, and googling did not turn up a
solution either:
http://old.nabble.com/Having-difficulty-suppressing-the-org.apache.tomcat.util.digester.Digester-logger-to32367312.html

Steps to reproduce:

1.) Set the global logging level to FINE:

.level = FINE

2.) Add a logger-specific logging level override:

org.apache.tomcat.util.digester.Digester.level = INFO (or SEVERE)

3.) Start up Tomcat and view the catalina-(date).log file or catalina.out. 
You'll see the above logger outputting countless FINE messages -- its output is
not being suppressed despite the statement in #2 above.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-09-02 16:21:39 UTC ---
The logger was named to align with the class.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> 2011-09-02 15:04:45 UTC ---
This has been fixed in trunk and 7.0.x and will be included in 7.0.22 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #3 from Glen Mazza <gm...@apache.org> 2011-09-02 16:12:15 UTC ---
Thanks.  I'll use the workaround but what is the fix in 7.0.22+ , did you
rename the logger back to the actual class name
(org.apache.commons.digester.Digester) or put in special coding for
"org.apache.tomcat.util.digester.Digester" to be understood as
org.apache.commons.digester.Digester?

It's unfortunate this particular logger had the mismatch, as it's obviously an
extremely chatty logger one would immediately like to suppress as one moves to
FINE or more granular logging levels--many others presumably can get tripped up
on this.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #6 from Konstantin Kolinko <kn...@gmail.com> 2011-09-09 23:39:48 UTC ---
Created attachment 27479
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27479
2011-09-10_tc6_bug51758.patch

Patch for 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #7 from Konstantin Kolinko <kn...@gmail.com> 2011-09-21 12:58:20 UTC ---
Fixed in 6.0 by r1173608 -- it will be in 6.0.34.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-09-02 15:01:00 UTC ---
The logger name is not the same as the class name in that one case. The
work-around is to define the level for:
org.apache.commons.digester.Digester.level = INFO

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51758] Setting logger-specific overrides in logging.properties not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51758

--- Comment #5 from Konstantin Kolinko <kn...@gmail.com> 2011-09-09 23:34:16 UTC ---
The fix in r1164567/r1164569 was incomplete. Improved by r1167394/r1167396.
Will be in 7.0.22.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org