Discussion:
[jira] [Created] (LOG4J2-160) Include option in throwable pattern converter to control stack trace separator
Joanne Polsky (JIRA)
2013-02-01 19:34:12 UTC
Permalink
Joanne Polsky created LOG4J2-160:
------------------------------------

Summary: Include option in throwable pattern converter to control stack trace separator
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky


Copying feature request from Bugzilla 1.x:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-01 19:36:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Priority: Trivial (was: Major)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:21:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: LOG4J2-160-1.patch
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:21:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky commented on LOG4J2-160:
--------------------------------------

I’ve attached the first patch for review; LOG4J2-160.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. the first being the change to include a new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), the options can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I can update this to allow comma to be supported but it complicates the parsing considerably. What I ended up doing was adding backward compatibility for the existing patterns described in the user guide, however, I'd like to know if it's possible to change the recommended usage in the user guide to use the standard delimiters?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:21:14 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky edited comment on LOG4J2-160 at 2/5/13 8:20 PM:
--------------------------------------------------------------

I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. the first being the change to include a new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), the options can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I can update this to allow comma to be supported but it complicates the parsing considerably. What I ended up doing was adding backward compatibility for the existing patterns described in the user guide, however, I'd like to know if it's possible to change the recommended usage in the user guide to use the standard delimiters?

was (Author: jpolsky):
I’ve attached the first patch for review; LOG4J2-160.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. the first being the change to include a new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), the options can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I can update this to allow comma to be supported but it complicates the parsing considerably. What I ended up doing was adding backward compatibility for the existing patterns described in the user guide, however, I'd like to know if it's possible to change the recommended usage in the user guide to use the standard delimiters?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:25:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky edited comment on LOG4J2-160 at 2/5/13 8:24 PM:
--------------------------------------------------------------

I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I only copied the existing code to support the case where 2 options are used (full, filters or separator), but I didn't add support for the case where all 3 options (full, filters, separator) are specified. It complicates parsing considerably since filters uses commas to delimit the packages. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?


was (Author: jpolsky):
I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. the first being the change to include a new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), the options can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I can update this to allow comma to be supported but it complicates the parsing considerably. What I ended up doing was adding backward compatibility for the existing patterns described in the user guide, however, I'd like to know if it's possible to change the recommended usage in the user guide to use the standard delimiters?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:29:14 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky edited comment on LOG4J2-160 at 2/5/13 8:28 PM:
--------------------------------------------------------------

I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I copied the existing code to support the case where 2 options are used {full,filters_or_separator), but I didn't add support for the case where all 3 options are used {full,filters,separator}. It complicates parsing considerably since filters uses commas to delimit the packages and requires these classes to use custom parsing techniques that are outside the standard framework. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?


was (Author: jpolsky):
I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I only copied the existing code to support the case where 2 options are used (full, filters or separator), but I didn't add support for the case where all 3 options (full, filters, separator) are specified. It complicates parsing considerably since filters uses commas to delimit the packages. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:37:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky edited comment on LOG4J2-160 at 2/5/13 8:35 PM:
--------------------------------------------------------------

I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I copied the existing code to support the case where 2 options are used {full,filters_or_separator), but I didn't add support for the case where all 3 options are used {full,filters,separator}. It complicates parsing considerably since filters uses commas to delimit the packages as well. It requires these classes to use custom parsing techniques that are outside the standard framework which doesn't feel natural. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?


was (Author: jpolsky):
I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I copied the existing code to support the case where 2 options are used {full,filters_or_separator), but I didn't add support for the case where all 3 options are used {full,filters,separator}. It complicates parsing considerably since filters uses commas to delimit the packages and requires these classes to use custom parsing techniques that are outside the standard framework. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:43:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: (was: LOG4J2-160-1.patch)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:45:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: LOG4J2-160-1.patch
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:49:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: (was: LOG4J2-160-1.patch)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 20:51:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: LOG4J2-160-1.patch
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-05 23:39:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571694#comment-13571694 ]

Joanne Polsky edited comment on LOG4J2-160 at 2/5/13 11:38 PM:
---------------------------------------------------------------

I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I copied the existing code to support the case where 2 options are specified in one "{full,filters_or_separator}", but I didn't add support for the case where all 3 options are specified in one "{full,filters,separator}". It complicates parsing considerably since filters uses commas to delimit the packages as well. It requires these classes to use custom parsing techniques that are outside the standard framework which doesn't feel natural. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? We can leave the support for 2 options in one delimited by a comma, or since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?


was (Author: jpolsky):
I’ve attached the first patch for review; LOG4J2-160-1.patch. I'd like to split this change into 2 changes lists if possible to reduce complexity. The first being the change to include the new separator option and apply it to the pattern converters. The second would address the performance improvements for ExtendedThrowablePatternConverter and RootThrowablePatternConverter in ThrowableProxy; there are some additional complexities that I would like to discuss outside of the context of this initial change.

I’ve created a new class called ThrowableFormatOptions which contains the parsing logic for the %throwable, %xThrowable and %rThrowable patterns. Each will support a new option to have a custom stack trace separator, for instance:
%ex{full}{separator(|)}
%ex{separator(|)}

This works fine for ThrowablePatternConverter, however, for ExtendedThrowablePatternConverter/RootThrowablePatternConverter there seems to be inconsistency between how options are delimited. From the user guide (http://logging.apache.org/log4j/2.x/log4j-users-guide.pdf), these patterns can use a comma delimiter:
%rEx["none"|"short"|"full"|depth],[filters(packages)}

However, this doesn't seem consistent with the way other patterns delimit the options by enclosing them in braces { }, for instance the following seems more correct:
%rEx[{("none"|"short"|"full"|depth)}][{filters(packages)}]

I copied the existing code to support the case where 2 options are used {full,filters_or_separator), but I didn't add support for the case where all 3 options are used {full,filters,separator}. It complicates parsing considerably since filters uses commas to delimit the packages as well. It requires these classes to use custom parsing techniques that are outside the standard framework which doesn't feel natural. Is is possible to change the recommended usage in the user guide to use the standard delimiters instead? Since this is still considered beta, is it acceptable to drop the comma syntax in favor of the braces exclusively?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-06 00:51:15 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: (was: LOG4J2-160-1.patch)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-06 00:51:15 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: LOG4J2-160-1.patch
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-06 06:37:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: LOG4J2-160-1.patch
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-06 06:37:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Attachment: (was: LOG4J2-160-1.patch)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Reporter: Joanne Polsky
Priority: Trivial
Attachments: LOG4J2-160-1.patch
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Joanne Polsky (JIRA)
2013-02-25 22:46:15 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joanne Polsky updated LOG4J2-160:
---------------------------------

Fix Version/s: 2.0-beta5
Priority: Minor (was: Trivial)
Description: Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line. (was: Copying feature request from Bugzilla 1.x:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51122)
Affects Version/s: 2.0-beta4
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta5
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Ralph Goers (JIRA)
2013-04-01 17:57:15 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618974#comment-13618974 ]

Ralph Goers commented on LOG4J2-160:
------------------------------------

Your patch was applied in revision 1463226.

My recommendation is to support the current formats but that any new options must be added to new [{tokens}].
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta5
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Ralph Goers (JIRA)
2013-04-01 17:57:16 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618974#comment-13618974 ]

Ralph Goers edited comment on LOG4J2-160 at 4/1/13 5:56 PM:
------------------------------------------------------------

Your patch was applied in revision 1463226.

My recommendation is to support the current formats but that any new options must be added to new [{tokens}].

The documentation still needs to be updated.

was (Author: ***@dslextreme.com):
Your patch was applied in revision 1463226.

My recommendation is to support the current formats but that any new options must be added to new [{tokens}].
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta5
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Ralph Goers (JIRA)
2013-05-09 06:01:19 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-160:
-------------------------------

Fix Version/s: (was: 2.0-beta5)
2.0-beta6
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta6
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Gary Gregory (JIRA)
2013-05-16 15:09:16 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory updated LOG4J2-160:
--------------------------------

Fix Version/s: (was: 2.0-beta6)
2.0-beta7
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta7
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Ralph Goers (JIRA)
2013-06-09 07:10:23 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-160:
-------------------------------

Fix Version/s: (was: 2.0-beta7)
2.0-beta8
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta8
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Gary Gregory (JIRA)
2013-07-17 15:36:51 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory updated LOG4J2-160:
--------------------------------

Fix Version/s: (was: 2.0-beta8)
2.0-beta9
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta9
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Gary Gregory (JIRA)
2013-08-23 18:23:52 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748815#comment-13748815 ]

Gary Gregory commented on LOG4J2-160:
-------------------------------------

Is the code fully baked now?
Is there still doc work to do?
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-beta9
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Gary Gregory (JIRA)
2013-09-30 20:54:37 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory updated LOG4J2-160:
--------------------------------

Fix Version/s: (was: 2.0-beta9)
2.0-rc1
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-rc1
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
Ralph Goers (JIRA)
2014-02-27 22:35:25 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-160:
-------------------------------

Fix Version/s: (was: 2.0-rc1)
2.0-rc2
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-rc2
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
Ralph Goers (JIRA)
2014-06-26 20:37:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-160:
-------------------------------

Fix Version/s: (was: 2.0-rc2)
2.0
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-18 03:48:05 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-160:
-------------------------------

Fix Version/s: 2.1
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0, 2.1
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-18 12:14:04 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-160:
-------------------------------

Fix Version/s: (was: 2.0)
2.0-rc2
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-rc2, 2.1
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-18 12:27:04 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066302#comment-14066302 ]

Remko Popma commented on LOG4J2-160:
------------------------------------

The patch was included in the rc2 release, but the issue was not resolved and no entry was added to changes.xml (so this change was not mentioned in the rc2 release notes).

There is no mention in the docs about custom stack trace line separators.

I would fix the docs except that it is not clear to me from the comments what the supported options are. (Perhaps the formatting of the comments is messed up because the wiki markup gets confused by the layout pattern syntax...)
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-rc2, 2.1
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-09-20 06:08:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-160:
-------------------------------
Fix Version/s: (was: 2.1)
2.2
Post by Joanne Polsky (JIRA)
Include option in throwable pattern converter to control stack trace separator
------------------------------------------------------------------------------
Key: LOG4J2-160
URL: https://issues.apache.org/jira/browse/LOG4J2-160
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0-beta4
Reporter: Joanne Polsky
Priority: Minor
Fix For: 2.0-rc2, 2.2
Attachments: LOG4J2-160-1.patch
Copying feature request from Bugzilla 1.x (https://issues.apache.org/bugzilla/show_bug.cgi?id=51122) to allow stack trace delimiter to be customizable rather than the hard coded new line.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...