You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/09 23:36:38 UTC
[jira] [Commented] (LOG4J2-1840) Doc issue in example for regex
[ https://issues.apache.org/jira/browse/LOG4J2-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904066#comment-15904066 ]
ASF GitHub Bot commented on LOG4J2-1840:
----------------------------------------
GitHub user zdiscov opened a pull request:
https://github.com/apache/logging-log4j2/pull/65
Fixed doc issue LOG4J2-1840
Example has a simple typo that would make it not work.
On the following page
https://logging.apache.org/log4j/log4j-2.3/manual/layouts.html
replace
{pattern} {regex} {substitution}
has a typo in the example (open parens used instead of open curly braces)
"%replace(%msg}{\s}{}"
it has to be
"%replace{%msg}{s}{}"

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zdiscov/logging-log4j2 master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/65.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #65
----
commit a04de0b8d8f53ecea8d206940d0ee475fa0e8d88
Author: Pradeep Balasundaram <pb...@pradeeps-macbook-pro.local>
Date: 2017-03-09T23:10:08Z
Fixed doc issue LOG4J2-1840
----
> Doc issue in example for regex
> -------------------------------
>
> Key: LOG4J2-1840
> URL: https://issues.apache.org/jira/browse/LOG4J2-1840
> Project: Log4j 2
> Issue Type: Documentation
> Components: Documentation
> Reporter: pradeep bala
>
> https://logging.apache.org/log4j/log4j-2.3/manual/layouts.html
> replace{pattern}{regex}{substitution}
> has a typo in the example
> "%replace(%msg}{\s}{}"
> fix
> "%replace{%msg}{\s}{}"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org