Class InfoStream
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.
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public abstract class InfoStream : IDisposable
Fields
NO_OUTPUT
Instance of InfoStream that does no logging at all.
Declaration
public static readonly InfoStream NO_OUTPUT
Field Value
Type | Description |
---|---|
InfoStream |
Properties
Default
Gets or Sets the default InfoStream used by a newly instantiated classes.
Declaration
public static InfoStream Default { get; set; }
Property Value
Type | Description |
---|---|
InfoStream |
Methods
Clone()
Clones this InfoStream
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
object |
Dispose()
Disposes this InfoStream
Declaration
public void Dispose()
Dispose(bool)
Disposes this InfoStream
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
IsEnabled(string)
Returns true
if messages are enabled and should be posted to Message(string, string).
Declaration
public abstract bool IsEnabled(string component)
Parameters
Type | Name | Description |
---|---|---|
string | component |
Returns
Type | Description |
---|---|
bool |
Message(string, string)
Prints a message
Declaration
public abstract void Message(string component, string message)
Parameters
Type | Name | Description |
---|---|---|
string | component | |
string | message |