[jira] [Comment Edited] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread Remko Popma (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14945111#comment-14945111 ] Remko Popma edited comment on LOG4J2-1153 at 10/6/15 2:33 PM: -- Thank you for

[jira] [Assigned] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread Remko Popma (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Remko Popma reassigned LOG4J2-1153: --- Assignee: Remko Popma > Unable to define only rootLogger in a properties file. >

Re: Fwd: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup: removed old/misleading reference to UTF-8 charset

2015-10-06 Thread Remko Popma
The Builder's charset field is already initialized to Charset.getDefault(), so I thought we should only overwrite it with a non-null value. On Tue, Oct 6, 2015 at 4:31 PM, Gary Gregory wrote: > Not quite right IMO, should be if charset == null then charset = >

[jira] [Updated] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread ElMehdi TAHRI (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ElMehdi TAHRI updated LOG4J2-1153: -- Description: I've changed the version of log4j2 from *2.3* to *2.4* in order to load the

[jira] [Resolved] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread Remko Popma (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Remko Popma resolved LOG4J2-1153. - Resolution: Fixed Fix Version/s: 2.4.1 Thank you for reporting this issue! Looks like

[jira] [Closed] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread ElMehdi TAHRI (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ElMehdi TAHRI closed LOG4J2-1153. - Works fine (y) > Unable to define only rootLogger in a properties file. >

Fwd: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup: removed old/misleading reference to UTF-8 charset

2015-10-06 Thread Gary Gregory
Not quite right IMO, should be if charset == null then charset = Charset.defaultCharset (). Gary  Original message From: rpo...@apache.org Date: 10/06/2015 06:34 (GMT-08:00) To: comm...@logging.apache.org Subject: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup:

Re: Fwd: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup: removed old/misleading reference to UTF-8 charset

2015-10-06 Thread Gary Gregory
But what if I call withCharset() once with a non null and then later with a null? Then you are stuck with the old value and you cannot reset to the default. Gary  Original message From: Remko Popma Date: 10/06/2015 07:35 (GMT-08:00) To: Log4J

[jira] [Updated] (LOG4J2-1152) Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages

2015-10-06 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Möller updated LOG4J2-1152: - Attachment: OneLinePatternConverter.java Initial implementation. UnitTest is following

[jira] [Updated] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread ElMehdi TAHRI (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ElMehdi TAHRI updated LOG4J2-1153: -- Affects Version/s: 2.4 > Unable to define only rootLogger in a properties file. >

[jira] [Created] (LOG4J2-1152) Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages

2015-10-06 Thread JIRA
Christian Möller created LOG4J2-1152: Summary: Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages Key: LOG4J2-1152 URL: https://issues.apache.org/jira/browse/LOG4J2-1152

[jira] [Created] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread ElMehdi TAHRI (JIRA)
ElMehdi TAHRI created LOG4J2-1153: - Summary: Unable to define only rootLogger in a properties file. Key: LOG4J2-1153 URL: https://issues.apache.org/jira/browse/LOG4J2-1153 Project: Log4j 2

[jira] [Updated] (LOG4J2-1152) Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages

2015-10-06 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Möller updated LOG4J2-1152: - Description: Adding %oneLine\{...\} to PatternLayout will mask line breaks of enclosed

[jira] [Commented] (LOG4J2-1152) Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages

2015-10-06 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14945342#comment-14945342 ] Gary Gregory commented on LOG4J2-1152: -- You should be able to do this today with the {{%replace}}

Re: Fwd: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup: removed old/misleading reference to UTF-8 charset

2015-10-06 Thread Remko Popma
Yes, that is correct. If you want to change the value that the builder uses you need to specify the value you actually want to use. If you want to reset to the platform default you would explicitly call builder.withCharset(Charset.defaultCharset()). I think that is reasonable. On Tue, Oct 6, 2015

[jira] [Assigned] (LOG4J2-1152) Add %oneLine to PatternLayout to mask line breaks for easier processing of log messages

2015-10-06 Thread Gary Gregory (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory reassigned LOG4J2-1152: Assignee: Gary Gregory > Add %oneLine to PatternLayout to mask line breaks for easier

Re: Fwd: [1/2] logging-log4j2 git commit: LOG4J2-783 code cleanup: removed old/misleading reference to UTF-8 charset

2015-10-06 Thread Gary Gregory
Sounds backward to me, but I won't change it. Gary On Tue, Oct 6, 2015 at 8:59 AM, Remko Popma wrote: > Yes, that is correct. If you want to change the value that the builder > uses you need to specify the value you actually want to use. If you want to > reset to the

[jira] [Updated] (LOG4J2-1153) Unable to define only rootLogger in a properties file.

2015-10-06 Thread ElMehdi TAHRI (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ElMehdi TAHRI updated LOG4J2-1153: -- Description: I've changed the version of **log4j2** from 2.3 to 2.4 in order to load the