[ 
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}{}"
    
    
    ![screen shot 2017-03-09 at 3 31 04 
pm](https://cloud.githubusercontent.com/assets/8023357/23775423/75c3f83a-04dd-11e7-8589-ed03d626249f.png)
    


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 <pbalasundaram@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-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to