GitHub user liyuj opened a pull request:

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

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

    Add a 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="LongField"/>
    <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.4 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/82.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 #82
    
----
commit 4b85794d18a6b80974313c6c6d47ff9b04b6294d
Author: liyuj <[email protected]>
Date:   2017-06-01T11:10:36Z

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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to