You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by liyuj <gi...@git.apache.org> on 2018/04/27 09:56:53 UTC
[GitHub] logging-log4j2 pull request #171: Add two new LuceneAppender which writes lo...
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 <sa...@...>
Date: 2018-04-27T09:47:33Z
add luceneAppender
----
---
[GitHub] logging-log4j2 issue #171: Add two new LuceneAppender which writes logging e...
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/171
Did you look at the Lucene5 branch?
---
[GitHub] logging-log4j2 issue #171: Add two new LuceneAppender which writes logging e...
Posted by liyuj <gi...@git.apache.org>.
Github user liyuj commented on the issue:
https://github.com/apache/logging-log4j2/pull/171
https://github.com/apache/logging-log4j2/pull/82#issuecomment-384311873
This PR is my submission.
I revised the submission based on the latest master branch, and then added the Lucene7 version.
---
[GitHub] logging-log4j2 issue #171: Add two new LuceneAppender which writes logging e...
Posted by liyuj <gi...@git.apache.org>.
Github user liyuj commented on the issue:
https://github.com/apache/logging-log4j2/pull/171
The related document addresses are:
https://www.zybuluo.com/liyuj/note/825932
please check.
---
[GitHub] logging-log4j2 issue #171: Add two new LuceneAppender which writes logging e...
Posted by remkop <gi...@git.apache.org>.
Github user remkop commented on the issue:
https://github.com/apache/logging-log4j2/pull/171
Is there a jira ticket for this pull request?
---