Package org.elasticsearch.common.lucene
Class LoggerInfoStream
- java.lang.Object
-
- org.apache.lucene.util.InfoStream
-
- org.elasticsearch.common.lucene.LoggerInfoStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class LoggerInfoStream extends InfoStream
An InfoStream (for Lucene's IndexWriter) that redirects messages to "lucene.iw.ifd" and "lucene.iw" Logger.trace.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.util.InfoStream
NO_OUTPUT
-
-
Constructor Summary
Constructors Constructor Description LoggerInfoStream(org.apache.logging.log4j.Logger parentLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisEnabled(String component)returns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String).voidmessage(String component, String message)prints a message-
Methods inherited from class org.apache.lucene.util.InfoStream
getDefault, setDefault
-
-
-
-
Method Detail
-
message
public void message(String component, String message)
Description copied from class:InfoStreamprints a message- Specified by:
messagein classInfoStream
-
isEnabled
public boolean isEnabled(String component)
Description copied from class:InfoStreamreturns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String).- Specified by:
isEnabledin classInfoStream
-
close
public void close()
-
-