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 2010/11/09 22:38:24 UTC

DO NOT REPLY [Bug 50242] New: Sample log4j configuration does not match default JULI-based configuration

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

           Summary: Sample log4j configuration does not match default
                    JULI-based configuration
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: chris@christopherschultz.net


The default configuration for JULI that ships with Tomcat is somewhat complex:
it defines a number of handlers and maps application and server logging to
each.

The sample configuration for log4j in the logging documentation is quite simple
and just shoves everything into a single log file.

It would be nicer to include a sample configuration for log4j that mirrors the
default one.

-- 
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 50242] Sample log4j configuration does not match default JULI-based configuration

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

--- Comment #4 from Grzegorz Grzybek <gr...@gmail.com> 2010-12-02 02:42:46 EST ---
Here's my attempt to integrate Tomcat with SLF4J + Logback from the very
beginning (Catalina.main()): https://github.com/grgrzybek/tomcat-slf4j-logback

It works for me and contains logback configuration matching the original J.U.L
and Log4j herein.

regards
Grzegorz Grzybek

-- 
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 50242] Sample log4j configuration does not match default JULI-based configuration

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

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

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

--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-11-10 07:22:50 EST ---
Patch applied. Many thanks. It will be in  7.0.5 onwards.

I made one minor tweak, I left the default log level as INFO so it was
consistent with the instructions further down for using DEBUG level logging.

-- 
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 50242] Sample log4j configuration does not match default JULI-based configuration

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-11-09 16:57:39 EST ---
Patches welcome

-- 
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 50242] Sample log4j configuration does not match default JULI-based configuration

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

--- Comment #2 from Christopher Schultz <ch...@christopherschultz.net> 2010-11-09 17:29:23 EST ---
Created an attachment (id=26274)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26274)
Sample log4j configuration that matches default java.util.logging configuration

Patches provided

-- 
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 50242] Sample log4j configuration does not match default JULI-based configuration

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

--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-12-02 03:36:57 EST ---
Please don't hijack similar but unrelated bugs. Anything added to an already
resolved bug is almost certain to get ignored / lost.

Please create a new Enhancement request for the logback support.

It appears that this is a standalone project. Providing a patch in diff -u
format against Tomcat trunk (model it on the log4j support in extras) would
increase the chances of this being included in the standard Tomcat
distribution.

-- 
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