-
Notifications
You must be signed in to change notification settings - Fork 242
/
LuceneLogCategories.java
35 lines (29 loc) · 1.25 KB
/
LuceneLogCategories.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.backend.lucene.logging.impl;
import org.hibernate.search.util.common.logging.impl.LogCategory;
import org.hibernate.search.util.common.logging.impl.LoggerFactory;
/**
* Log categories to be used with {@link LoggerFactory#make(Class, LogCategory)}.
*
* @author Gunnar Morling
*/
public final class LuceneLogCategories {
private LuceneLogCategories() {
}
public static final String INFOSTREAM_LOGGER_CATEGORY_NAME = "org.hibernate.search.backend.lucene.infostream";
/**
* This is the category of the Logger used to print out the Lucene infostream.
* <p>
* To enable the logger, the category needs to be enabled at TRACE level and configuration
* property {@code org.hibernate.search.backend.configuration.impl.IndexWriterSetting#INFOSTREAM}
* needs to be enabled on the index.
*
* @see org.hibernate.search.backend.lucene.cfg.LuceneIndexSettings#WRITER_INFOSTREAM
*/
public static final LogCategory INFOSTREAM_LOGGER_CATEGORY = new LogCategory( INFOSTREAM_LOGGER_CATEGORY_NAME );
}