Package org.apache.lucene.util
Class InfoStream
java.lang.Object
org.apache.lucene.util.InfoStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
JavaLoggingInfoStream,PrintStreamInfoStream
Debugging API for Lucene classes such as
IndexWriter and SegmentInfos.
NOTE: Enabling infostreams may cause performance degradation in some components.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InfoStreamInstance of InfoStream that does no logging at all. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InfoStreamThe defaultInfoStreamused by a newly instantiated classes.abstract booleanreturns true if messages are enabled and should be posted tomessage(java.lang.String, java.lang.String).abstract voidprints a messagestatic voidsetDefault(InfoStream infoStream) Sets the defaultInfoStreamused by a newly instantiated classes.
-
Field Details
-
NO_OUTPUT
Instance of InfoStream that does no logging at all.
-
-
Constructor Details
-
InfoStream
public InfoStream()
-
-
Method Details
-
message
prints a message -
isEnabled
returns true if messages are enabled and should be posted tomessage(java.lang.String, java.lang.String). -
getDefault
The defaultInfoStreamused by a newly instantiated classes.- See Also:
-
setDefault
Sets the defaultInfoStreamused by a newly instantiated classes. It cannot benull, to disable logging useNO_OUTPUT.- See Also:
-