Re: The Range of Levels

2015-08-28 Thread Xen
But that still doesn't make me understand because I don't know anything about those log4j 1 levels ;-). I was not criticising. I don't even know the numeric value of those levels at this point. It's just that, supposing FATAL has a low value, and TRACE has a high value (???) then how come

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread Bart S. (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718416#comment-14718416 ] Bart S. commented on LOG4J2-1107: - Haha, so obvious! :D :P. > Appender for Apache Kafka

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718485#comment-14718485 ] Ralph Goers commented on LOG4J2-1108: - I agree. Would it be possible for you to creat

Re: The Range of Levels

2015-08-28 Thread Ralph Goers
I had the same reaction when I first started looking at levels. In log4j1 it was worse since levels were ints, the value was always in your face. With enums it isn't quite as obvious. It is also why we renamed the level method that does the checking to something like "isLessSpecific" so the nume

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718508#comment-14718508 ] Ralph Goers commented on LOG4J2-1107: - I have unit tests for the Flume Appender. I fo

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718528#comment-14718528 ] Mikael Ståldal commented on LOG4J2-1108: Yes, but what is it supposed to do when

Re: The Range of Levels

2015-08-28 Thread Xen
I have no issue with the numbers, I don't even know the numbers. Maybe I should just go and find out since you don't tell me Ah, so indeed DEBUG is 1 (or 1) and FATAL is 5 (or 5). Hmmm so that means my impression was correct and congruent with the explanations in the tutorials. I

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718553#comment-14718553 ] Ralph Goers commented on LOG4J2-952: Bart, Jira is not an email system for you to docu

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Bart S. (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718629#comment-14718629 ] Bart S. commented on LOG4J2-952: You have an issue with actually thinking about something.

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Bart S. (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718649#comment-14718649 ] Bart S. commented on LOG4J2-952: And you're also causing me to take time off my day becaus

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14719322#comment-14719322 ] Mikael Ståldal commented on LOG4J2-1107: I don't think it's worth the effort sinc

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14719976#comment-14719976 ] Gary Gregory commented on LOG4J2-1107: -- Without a test: How do you prevent regressio

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14719987#comment-14719987 ] Gary Gregory commented on LOG4J2-1107: -- We have other tests that start and stop serv

[jira] [Updated] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal updated LOG4J2-1108: --- Attachment: setlevel.patch Patch to fix this issue > NullPointerException when passing null

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720020#comment-14720020 ] Gary Gregory commented on LOG4J2-1108: -- Wait a sec. {{org.apache.logging.log4j.core.

[jira] [Issue Comment Deleted] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal updated LOG4J2-1108: --- Comment: was deleted (was: Yes, but what is it supposed to do when null is passed?) > NullPo

[jira] [Commented] (LOG4J2-1093) Builder for FileAppender

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720066#comment-14720066 ] Gary Gregory commented on LOG4J2-1093: -- Please provide unit tests so we can see the

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720067#comment-14720067 ] Gary Gregory commented on LOG4J2-952: - TL;DR except I saw the reference to [LOG4j2-109

[jira] [Comment Edited] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720067#comment-14720067 ] Gary Gregory edited comment on LOG4J2-952 at 8/28/15 4:07 PM: --

Early Access builds for JDK 8u66 b02 and JDK 9 b78 are available on java.net

2015-08-28 Thread Rory O'Donnell
Hi Nick, Early Access build for JDK 8u66 b02 is available on java.net, summary of changes are listed here. Early Access build for JDK 9 b78

[jira] [Assigned] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory reassigned LOG4J2-1108: Assignee: Gary Gregory > NullPointerException when passing null to java.util.logging.Logge

[jira] [Resolved] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory resolved LOG4J2-1108. -- Resolution: Fixed Fix Version/s: 2.4 In Git master. Please verify and close. Could use a

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720423#comment-14720423 ] Ralph Goers commented on LOG4J2-1108: - I don't think this is correct. You can't modif

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720423#comment-14720423 ] Ralph Goers edited comment on LOG4J2-1108 at 8/28/15 7:15 PM: -

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720423#comment-14720423 ] Ralph Goers edited comment on LOG4J2-1108 at 8/28/15 7:23 PM: -

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720433#comment-14720433 ] Gary Gregory edited comment on LOG4J2-1108 at 8/28/15 7:24 PM:

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720433#comment-14720433 ] Gary Gregory commented on LOG4J2-1108: -- OK, so this works: {code:java} public s

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720433#comment-14720433 ] Gary Gregory edited comment on LOG4J2-1108 at 8/28/15 7:25 PM:

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720449#comment-14720449 ] Ralph Goers commented on LOG4J2-1108: - I don't really like that because you are poten

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720469#comment-14720469 ] Gary Gregory commented on LOG4J2-1108: -- The {{org.apache.logging.log4j.jul.CoreLogge

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720469#comment-14720469 ] Gary Gregory edited comment on LOG4J2-1108 at 8/28/15 7:55 PM:

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720509#comment-14720509 ] Ralph Goers commented on LOG4J2-1108: - I'll have to look at this to see why. > NullP

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720520#comment-14720520 ] Gary Gregory commented on LOG4J2-1108: -- Merci! > NullPointerException when passing

[jira] [Created] (LOG4J2-1110) org.apache.logging.log4j.jul.CoreLogger.setLevel() checks for security permission too late

2015-08-28 Thread Gary Gregory (JIRA)
Gary Gregory created LOG4J2-1110: Summary: org.apache.logging.log4j.jul.CoreLogger.setLevel() checks for security permission too late Key: LOG4J2-1110 URL: https://issues.apache.org/jira/browse/LOG4J2-1110

[jira] [Closed] (LOG4J2-1110) org.apache.logging.log4j.jul.CoreLogger.setLevel() checks for security permission too late

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory closed LOG4J2-1110. Resolution: Fixed Fix Version/s: 2.4 In Git master. > org.apache.logging.log4j.jul.CoreLogg

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720604#comment-14720604 ] Gary Gregory commented on LOG4J2-952: - How about putting the patch in a branch so we c

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720649#comment-14720649 ] Ralph Goers commented on LOG4J2-952: Sure. I can create a branch for this. I should ha

Re:

2015-08-28 Thread Xen
I'm sorry about not being there to review btw. I've been a bit busy (or deplored) with installing Linux and all that and trying to configure it. It's a good waste of time and makes you think you should stop using computers ;-). How about spending at least 10 hours trying to get a certain type

[jira] [Commented] (LOG4J2-1098) log4j.shutdownHookEnabled=false from log4j-web ignored?

2015-08-28 Thread Ralph Goers (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718136#comment-14718136 ] Ralph Goers commented on LOG4J2-1098: - Yup, I am sure. factory.addShutdownCallback ch

[jira] [Commented] (LOG4J2-1107) Appender for Apache Kafka

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718167#comment-14718167 ] Mikael Ståldal commented on LOG4J2-1107: Any meaningful test would require a Kafk

[jira] [Updated] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal updated LOG4J2-1108: --- Priority: Blocker (was: Major) Summary: NullPointerException when passing null to java.

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718172#comment-14718172 ] Mikael Ståldal commented on LOG4J2-1108: Changing the title since this does not s

[jira] [Comment Edited] (LOG4J2-1098) log4j.shutdownHookEnabled=false from log4j-web ignored?

2015-08-28 Thread Robin Jansohn (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718119#comment-14718119 ] Robin Jansohn edited comment on LOG4J2-1098 at 8/28/15 8:00 AM: ---

[jira] [Commented] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718183#comment-14718183 ] Mikael Ståldal commented on LOG4J2-1108: According to [http://docs.oracle.com/ja

[jira] [Comment Edited] (LOG4J2-1108) NullPointerException when passing null to java.util.logging.Logger.setLevel()

2015-08-28 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718183#comment-14718183 ] Mikael Ståldal edited comment on LOG4J2-1108 at 8/28/15 8:07 AM: --

[jira] [Commented] (LOG4J2-1098) log4j.shutdownHookEnabled=false from log4j-web ignored?

2015-08-28 Thread Robin Jansohn (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718205#comment-14718205 ] Robin Jansohn commented on LOG4J2-1098: --- So in the end it's exactly issue LOG4J2-65

Re: setting the level for a logger tree

2015-08-28 Thread Remko Popma
How about: setLevelIfLoggerNameStartsWith or setLevelIfLoggerNameMatches ? Sent from my iPhone > On 2015/08/28, at 12:09, Gary Gregory wrote: > >> On Thu, Aug 27, 2015 at 5:44 PM, Xen wrote: >> setAllLevels doesn't convey what the method does at all, in the sense that >> it is going to 'trave

Re: setting the level for a logger tree

2015-08-28 Thread Xen
On Thu, 27 Aug 2015, Gary Gregory wrote: setDescendentTreeLevels ;-). Hm... but 'descendant' means the same as 'children' to me. I am not my own descendant so that word is just as 'wrong' as children. The word 'tree' does convey that we are not just looking at the immediate decendants/childre

[jira] [Commented] (LOG4J2-952) FAQ: How do I configure log4j2 programmatically in code without a configuration file?

2015-08-28 Thread Bart S. (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718315#comment-14718315 ] Bart S. commented on LOG4J2-952: Pff. Confusing, everything. I think the assembler solutio