Bug report for Log4j [2014/04/20]

2014-04-20 Thread bugzilla
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned

[jira] [Commented] (LOG4J2-547) Update LoggerStream API

2014-04-20 Thread Matt Sicker (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975202#comment-13975202 ] Matt Sicker commented on LOG4J2-547: Added in revision 1588797 on the experimental bra

Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
I know that the documentation says to use the slf4j JUL bridge, but that seems excessive. Is there any reason we don't have our own bridge? Or is it just a better idea to use the slf4j one? -- Matt Sicker

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Ralph Goers
I’ve answered this before and it always starts with "java.util.logging sucks” - at least from the point of view of trying to use its API on top of something else. (It sucks in other ways too but that is a different discussion). Take a look at the LogManager class. The only way to replace the JDK

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
Well, looking at the LogManager source, I see what you're saying. The global LogManager instance is a private static final field, so even with reflection, you can't override that. So yes, you'd have to set the system property before LogManager gets initialized, or it would need to be user-specified

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
Speaking of which, that whole "private static final LogManager" is just as bad as the current "private static final LoggerContextFactory" we've got in LogManager. This needs to be replaceable after start-up to really be powerful. On 20 April 2014 13:57, Matt Sicker wrote: > Well, looking at the

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
Scratch that (for the jul.LogManager); you can totally abuse reflection to replace the LogManager at runtime! On 20 April 2014 14:30, Matt Sicker wrote: > Speaking of which, that whole "private static final LogManager" is just as > bad as the current "private static final LoggerContextFactory"

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Remko Popma
Something for 2.1? Sent from my iPhone > On 2014/04/21, at 5:45, Matt Sicker wrote: > > Scratch that (for the jul.LogManager); you can totally abuse reflection to > replace the LogManager at runtime! > > >> On 20 April 2014 14:30, Matt Sicker wrote: >> Speaking of which, that whole "private

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
At this point, I'm starting to think so. I'm trying to implement this using the proper security contexts and such, and I'm already writing a new reflection utility class. On 20 April 2014 15:43, Remko Popma wrote: > Something for 2.1? > > Sent from my iPhone > > On 2014/04/21, at 5:45, Matt Sic

Could we get a 2.1 version in JIRA?

2014-04-20 Thread Matt Sicker
So we can mark issues as to be fixed or implemented in 2.1. -- Matt Sicker

[jira] [Created] (LOG4J2-608) Add support for a java.util.logging bridge.

2014-04-20 Thread Matt Sicker (JIRA)
Matt Sicker created LOG4J2-608: -- Summary: Add support for a java.util.logging bridge. Key: LOG4J2-608 URL: https://issues.apache.org/jira/browse/LOG4J2-608 Project: Log4j 2 Issue Type: New Featu

RE: Could we get a 2.1 version in JIRA?

2014-04-20 Thread Gary Gregory
Sure,  why not? That seems like a good way to triage issues. I would help us see if some of these features should go in 2.0 if they will break BY in 2.1. Gary Original message From: Matt Sicker Date:04/20/2014 21:09 (GMT-05:00) To: Log4J Developers List Subject: Could we

[jira] [Updated] (LOG4J2-608) Add support for a java.util.logging bridge.

2014-04-20 Thread Matt Sicker (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Sicker updated LOG4J2-608: --- Attachment: 608-1.0.patch Here's what I did today. Almost seems to work (at least using OpenJDK 1.8)

Re: Why don't we have a java.util.logging bridge?

2014-04-20 Thread Matt Sicker
Posted an initial version to JIRA for you all to take a look at. On 20 April 2014 15:56, Matt Sicker wrote: > At this point, I'm starting to think so. I'm trying to implement this > using the proper security contexts and such, and I'm already writing a new > reflection utility class. > > > On 2

Unit test failures

2014-04-20 Thread Ralph Goers
I just did a fresh checkout and am getting the following test failures: Results : Failed tests: CustomConfigurationTest.testConfig:61 expected same: was not: FileOutputTest.testConfig:44 File is empty Tests run: 543, Failures: 2, Errors: 0, Skipped: 15

Fwd: svn commit: r1588809 - in /logging/log4j/log4j2/trunk: log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/ log4j-plugin-processor/src/main/java/org/apache/logging/log4j/core/co

2014-04-20 Thread Ralph Goers
I thought we had agreed that the plugin processor would only be a compile time dependency for things building plugins. I believe this now makes the additional jar a runtime dependency, which was what we said we didn’t want. Ralph Begin forwarded message: > From: mattsic...@apache.org > Subj