You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2007/04/23 01:56:42 UTC

DO NOT REPLY [Bug 42189] New: - Add simple bridge for java.util.logging, with basic Configurator support

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189

           Summary: Add simple bridge for java.util.logging, with basic
                    Configurator support
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: psmith@apache.org


I'd like to propose that we consider adding a simplistic juli log filter class
to log4j 1.2.  Since it needs to compile with jdk 1.4, we'd probably have to
create a separate jar for this, perhaps a new log4j-juli sandbox module.

We could update all *Configurator classes to detect if this bridge is available,
and expose a new property on the configurators such as

public void setUseJDK14LoggingBridge(boolean true)

(or better name).

This could throw an IllegalStateException if the underlying OS is not JDK 1.4 or
above, and the juli-bridge classes are not available.  That way a simple bridge
could be provided to our user community by them doing:

* Downloading and adding a single additional jar to log4j
* Using the latest log4j 1.2.15 (say)
* Adding a single method call to their Configurator usage

Perhaps as an added bonus, adding support to the XML/Properties configuration to
allow that

<log4j:configuration debug="false" threshold="debug"
useJDK14LoggingBridge="true"....>

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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189


olegk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olegk@apache.org




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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189





------- Additional Comments From psmith@apache.org  2008-02-15 13:55 -------
We have had one 'customer' report successful usage of this module, and working
towards a release (other log4j sub-modules considered a priority).

If you were able to try out the latest snapshot and confirm it works for your
use cases it would encourage us that this module is stable enough as a release
worthy.  

That would help a lot.

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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189





------- Additional Comments From ebourg@apache.org  2008-02-15 05:15 -------
What's the status on this issue ? I see that log4j 1.2.15 has been released but
the bug is still open. Do we have the java.util.Logging bridge in the latest
release of log4j ?

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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189


psmith@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|psmith@apache.org           |log4j-dev@logging.apache.org
             Status|ASSIGNED                    |NEW




------- Additional Comments From psmith@apache.org  2007-04-29 15:16 -------
Firstly, 'reassigning' this bug back to log4j-dev@logging.apache.org so that
comments are seen on the list.  That was my bad. 

I have renamed the module to be 'jul-to-log4j-bridge', and renamed the classes
to match 'JUL' instead of 'juli' to avoid confusion.

We have not merged this module into the log4j-receivers module because the
bridge requires JDK 1.4, but the rest of the receivers do not.

I've added a log4j Receiver, so that one can configure the bridge using XML
configuration (requires log4j 1.2.15 though, not yet released).

http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/README.txt

There is still a maven weirdness whereby the unit tests do not pass, because
somehow maven is putting log4j 1.2.14 on the classpath instead of 1.2.15.  The
'ant test' does pass though.  That is still under investigation.

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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189


ebourg@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebourg@apache.org




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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189


psmith@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|log4j-dev@logging.apache.org|psmith@apache.org




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

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


DO NOT REPLY [Bug 42189] - Add simple bridge for java.util.logging, with basic Configurator support

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42189





------- Additional Comments From psmith@apache.org  2007-11-04 23:19 -------
Incidentally for the watchers of this bug, latest viewable snapshot available here:

http://people.apache.org/~psmith/logging.apache.org/repo/org/apache/logging/apache-jul-log4j-bridge/1.0.0-SNAPSHOT/

Website docs here:

http://people.apache.org/~psmith/logging.apache.org/sandbox/jul-log4j-bridge/

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

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