Class InfoStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable
    Direct Known Subclasses:
    LoggingInfoStream, PrintStreamInfoStream

    public abstract class InfoStream
    extends java.lang.Object
    implements java.io.Closeable, java.lang.Cloneable
    Debugging API for Lucene classes such as IndexWriter and SegmentInfos.

    NOTE: Enabling infostreams may cause performance degradation in some components.

    • Field Detail

      • NO_OUTPUT

        public static final InfoStream NO_OUTPUT
        Instance of InfoStream that does no logging at all.
    • Constructor Detail

      • InfoStream

        public InfoStream()
    • Method Detail

      • message

        public abstract void message​(java.lang.String component,
                                     java.lang.String message)
        prints a message
      • setDefault

        public static void setDefault​(InfoStream infoStream)
        Sets the default InfoStream used by a newly instantiated classes. It cannot be null, to disable logging use NO_OUTPUT.
        See Also:
        getDefault()