GitHub user liyuj opened a pull request:

    https://github.com/apache/logging-log4j2/pull/171

    Add two new LuceneAppender which writes logging events to a lucene index 
library.

    Add two new LuceneAppender which writes logging events to a lucene index 
library.The log4j2.xml configuration is as follows:
    <Lucene name="lucene" ignoreExceptions="true" 
target="/target/lucene/index" expiryTime=“1296000”>
    <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %class{36} 
%L %M - %msg%xEx%n"/>
    <IndexField name="time" pattern="%d{UNIX_MILLIS}" type="Long"/>
    <IndexField name="level" pattern="%-5level" />
    <IndexField name="content" pattern="%d{HH:mm:ss.SSS} %-5level %class{36} 
%L %M - %msg%xEx%n"/>
    </Lucene>
    
    this appender relies on the Lucene 5.5.5 or 7.3.0 version.
    this patch adds the corresponding test cases.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/liyuj/logging-log4j2 master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/171.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 #171
    
----
commit 650633de46ac360e1da5c1b20cbdfdc39d57d704
Author: liyujue <sahala232@...>
Date:   2018-04-27T09:47:33Z

    add luceneAppender

----


---

Reply via email to