GitHub user liyuj opened a pull request:
https://github.com/apache/logging-log4j2/pull/74
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/74.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 #74
----
commit ab4fbe5875c6f5aebdfe1bc528c0bb8eaed57fe1
Author: liyuj <[email protected]>
Date: 2017-04-24T05:38:52Z
new LuceneAppender
----
---
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.
---