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

2015-10-09 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: EscapeEolPatternConverter.java

Version 2 of the code, delegating operation to an instance of 
RegexReplacementConverter, created by a factory method.

> 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
> Project: Log4j 2
>  Issue Type: New Feature
>  Components: Pattern Converters
>Reporter: Christian Möller
>Assignee: Gary Gregory
> Attachments: EscapeEolPatternConverter.java, 
> OneLinePatternConverter.java
>
>
> Adding %oneLine\{...\} to PatternLayout will mask line breaks of enclosed 
> Strings as " |>> ". For instance, %oneline{%exception{full}} will convert 
> stack traces to a one-liner easier to handle with tools like grep. Based on 
> an idea of Heinz Kabutz: http://www.javaspecialists.eu/archive/Issue177.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



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

2015-10-09 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: EscapeEolPatternConverter.java

FindBugs reveals a tiny bug ...

> 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
> Project: Log4j 2
>  Issue Type: New Feature
>  Components: Pattern Converters
>Reporter: Christian Möller
>Assignee: Gary Gregory
> Attachments: EscapeEolPatternConverter.java, 
> OneLinePatternConverter.java
>
>
> Adding %oneLine\{...\} to PatternLayout will mask line breaks of enclosed 
> Strings as " |>> ". For instance, %oneline{%exception{full}} will convert 
> stack traces to a one-liner easier to handle with tools like grep. Based on 
> an idea of Heinz Kabutz: http://www.javaspecialists.eu/archive/Issue177.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



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

2015-10-09 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: (was: EscapeEolPatternConverter.java)

> 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
> Project: Log4j 2
>  Issue Type: New Feature
>  Components: Pattern Converters
>Reporter: Christian Möller
>Assignee: Gary Gregory
> Attachments: OneLinePatternConverter.java
>
>
> Adding %oneLine\{...\} to PatternLayout will mask line breaks of enclosed 
> Strings as " |>> ". For instance, %oneline{%exception{full}} will convert 
> stack traces to a one-liner easier to handle with tools like grep. Based on 
> an idea of Heinz Kabutz: http://www.javaspecialists.eu/archive/Issue177.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[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 soon ...

> 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
> Project: Log4j 2
>  Issue Type: New Feature
>  Components: Pattern Converters
>Reporter: Christian Möller
> Attachments: OneLinePatternConverter.java
>
>
> Adding %oneLine{...} to PatternLayout will mask line breaks of enclosed 
> Strings as " |>> ". For instance, %oneline{%exception{full}} will convert 
> stack traces to a one-liner easier to handle with tools like grep. Based on 
> an idea of Heinz Kabutz: http://www.javaspecialists.eu/archive/Issue177.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[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 Strings as " |>> ". For instance, %oneline{%exception{full}} will 
convert stack traces to a one-liner easier to handle with tools like grep. 
Based on an idea of Heinz Kabutz: 
http://www.javaspecialists.eu/archive/Issue177.html  (was: Adding %oneLine{...} 
to PatternLayout will mask line breaks of enclosed Strings as " |>> ". For 
instance, %oneline{%exception{full}} will convert stack traces to a one-liner 
easier to handle with tools like grep. Based on an idea of Heinz Kabutz: 
http://www.javaspecialists.eu/archive/Issue177.html)

> 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
> Project: Log4j 2
>  Issue Type: New Feature
>  Components: Pattern Converters
>Reporter: Christian Möller
> Attachments: OneLinePatternConverter.java
>
>
> Adding %oneLine\{...\} to PatternLayout will mask line breaks of enclosed 
> Strings as " |>> ". For instance, %oneline{%exception{full}} will convert 
> stack traces to a one-liner easier to handle with tools like grep. Based on 
> an idea of Heinz Kabutz: http://www.javaspecialists.eu/archive/Issue177.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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