public class Slf4JInfoStream
extends org.apache.lucene.util.InfoStream
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
InfoStream
, to SLF4J.
In InfoStream
, messages are categorised by "components". Generally a component is the class name or an
acronym of it, e.g. the component of org.apache.lucene.index.IndexUpgrader is IndexUpgrader and the component of
org.apache.lucene.index.DocumentsWriter is DW. Since there's no concept of log levels, all messages are logged under
debug.
A Spring-managed instance will replace the default InfoStream
within its lifecycle, thus it only makes
sense to have a singleton registered.
Constructor and Description |
---|
Slf4JInfoStream(Map<String,String> componentToLoggerMapping) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
close() |
void |
destroy() |
boolean |
isEnabled(String component) |
void |
message(String component,
String message) |
public void message(String component, String message)
message
in class org.apache.lucene.util.InfoStream
public boolean isEnabled(String component)
isEnabled
in class org.apache.lucene.util.InfoStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
Copyright © 2003–2016 Atlassian. All rights reserved.