You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/09/24 08:12:33 UTC

[jira] [Commented] (OAK-2125) Integrate Lucene logging with Slf4j

    [ https://issues.apache.org/jira/browse/OAK-2125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14145964#comment-14145964 ] 

Chetan Mehrotra commented on OAK-2125:
--------------------------------------

Added support in http://svn.apache.org/r1627228

By default logging integration is not enabled and Lucene continues to use the {{InfoStream.NO_OUTPUT}} so performance impact. To enable it one must set the 'debug' flag to true for {{org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProviderService}} OSGi config. Once enabled actual logging can be configured via category {{oak.lucene}}. 

Sample output

{noformat}
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.TP [TP] startStartCommit
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.IW [IW] startCommit(): start
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.IW [IW] startCommit index=_a(4.7):C19809 changeCount=4
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.TP [TP] midStartCommit
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.TP [TP] midStartCommit2
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.IW [IW] done all syncs: [_a.tim, _a.nvm, _a.tip, _a.doc, _a.nvd, _a.fdt, _a.si, _a.pos, _a.fdx, _a.fnm]
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.TP [TP] midStartCommitSuccess
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.TP [TP] finishStartCommit
24.09.2014 11:13:16.750 *DEBUG* [pool-12-thread-4] oak.lucene.IW [IW] commit: pendingCommit != null
24.09.2014 11:13:16.751 *DEBUG* [pool-12-thread-4] oak.lucene.IW [IW] commit: wrote segments file "segments_9"
24.09.2014 11:13:16.751 *DEBUG* [pool-12-thread-4] oak.lucene.IFD [IFD] now checkpoint "_a(4.7):C19809" [1 segments ; isCommit = true]
24.09.2014 11:13:16.751 *DEBUG* [pool-12-thread-4] oak.lucene.IFD [IFD] deleteCommits: now decRef commit "segments_8"
{noformat}

> Integrate Lucene logging with Slf4j
> -----------------------------------
>
>                 Key: OAK-2125
>                 URL: https://issues.apache.org/jira/browse/OAK-2125
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.1, 1.0.7
>
>
> Lucene creates debug logging which are routed via [InfoStream|http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/util/InfoStream.html]. Currently there is no way to enable that in Oak. We should provide a way to route the logs via slf4j



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)