public abstract class InfoStream extends Object implements Closeable
IndexWriter
and SegmentInfos.
NOTE: Enabling infostreams may cause performance degradation in some components.
| Modifier and Type | Field and Description |
|---|---|
static InfoStream |
NO_OUTPUT
Instance of InfoStream that does no logging at all.
|
| Constructor and Description |
|---|
InfoStream() |
| Modifier and Type | Method and Description |
|---|---|
static InfoStream |
getDefault()
The default
InfoStream used by a newly instantiated classes. |
abstract boolean |
isEnabled(String component)
returns true if messages are enabled and should be posted to
message(java.lang.String, java.lang.String). |
abstract void |
message(String component,
String message)
prints a message
|
static void |
setDefault(InfoStream infoStream)
Sets the default
InfoStream used
by a newly instantiated classes. |
public static final InfoStream NO_OUTPUT
public abstract boolean isEnabled(String component)
message(java.lang.String, java.lang.String).public static InfoStream getDefault()
InfoStream used by a newly instantiated classes.public static void setDefault(InfoStream infoStream)
InfoStream used
by a newly instantiated classes. It cannot be null,
to disable logging use NO_OUTPUT.getDefault()Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.