[Bug 232] New: SLF4j not logging Debug logs with java Util log bindings .

http://bugzilla.slf4j.org/show_bug.cgi?id=232 Summary: SLF4j not logging Debug logs with java Util log bindings . Product: SLF4J Version: 1.6.x Platform: PC OS/Version: Windows XP Status: NEW Severity: major Priority: P1 Component: Unspecified AssignedTo: slf4j-dev@qos.ch ReportedBy: shrey4bskyb@googlemail.com Created attachment 80 --> http://bugzilla.slf4j.org/attachment.cgi?id=80 Test Project to repoduce the issue Log statements with Debug and Trace levels are missing inspite of setting logging level for java.util.logging to ALL . Issue occures when java utill logging is set as bindings . Attached is a test project to reproduce the problem . -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 shrey <shrey4bskyb@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80|Test Project to repoduce |Test Project to reproduce description|the issue |the issue -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 --- Comment #1 from shrey <shrey4bskyb@googlemail.com> 2011-08-10 17:15:56 CEST --- Log statements with Debug and Trace levels are missing inspite of setting logging level for java.util.logging to ALL . This behaviour occures when java util logging is set as bindings . -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 shrey <shrey4bskyb@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shrey4bskyb@googlemail.com -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |listid@qos.ch Resolution| |WORKSFORME --- Comment #2 from Ceki Gulcu <listid@qos.ch> 2011-08-10 17:56:12 CEST --- Hello, If you set the java.util.logging.config.file system property to the location of your logging.properties file before running your sample application, you will see that logging levels are handled correctly. Consequently, I am resolving this entry as WORKSFORME. See also http://download.oracle.com/javase/1.4.2/docs/api/java/util/logging/LogManage... -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 shrey <shrey4bskyb@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #3 from shrey <shrey4bskyb@googlemail.com> 2011-08-10 18:17:44 CEST --- Hi, I have set -Djava.util.logging.config.file to logging.properties file location , but still not able to see debug log statements . logging.properties file is also attached in the ear , please test . -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #4 from Ceki Gulcu <listid@qos.ch> 2011-08-10 18:20:44 CEST --- But I have tested and the application does work if you set the java.util.logging.config.file property to the *full* path of your logging.properties file. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 --- Comment #5 from shrey <shrey4bskyb@googlemail.com> 2011-08-10 18:39:29 CEST --- Sorry to follow up again , but we are not able to see debug logs , have tested this on multiple environments in my project . Below is what we see in the output after running test program (attached) , log messages does change when we change the levels in logging.properties . 10-Aug-2011 16:23:48 com.bskyb.fin.Sample main INFO: ----INFO----true 10-Aug-2011 16:23:49 com.bskyb.fin.Sample main WARNING: ----WARN---- 10-Aug-2011 16:23:49 com.bskyb.fin.Sample main SEVERE: ----ERROR---- -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=232 --- Comment #6 from Ceki Gulcu <listid@qos.ch> 2011-08-10 18:47:26 CEST --- Given the following logging.properties file: handlers=java.util.logging.ConsoleHandler .level=ALL java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter The following output is generated when running com.bskyb.fin.Sample: Aug 10, 2011 6:45:29 PM com.bskyb.fin.Sample main FINE: ----DEBUG----true Aug 10, 2011 6:45:29 PM com.bskyb.fin.Sample main INFO: ----INFO----true Aug 10, 2011 6:45:29 PM com.bskyb.fin.Sample main WARNING: ----WARN---- Aug 10, 2011 6:45:29 PM com.bskyb.fin.Sample main SEVERE: ----ERROR---- Aug 10, 2011 6:45:29 PM com.bskyb.fin.Sample main FINEST: ----TRACE---- You should obtain the same. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@pixie.qos.ch