|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.api.ErrorLogPublisher<ErrorLogPublisherCfg>
org.opends.server.loggers.ThreadFilterTextErrorLogPublisher
public class ThreadFilterTextErrorLogPublisher
This class provides an implementation of an error logger where only messages generated by a specified thread is actually logged.
| Field Summary |
|---|
| Fields inherited from class org.opends.server.api.ErrorLogPublisher |
|---|
defaultSeverities, definedSeverities |
| Constructor Summary | |
|---|---|
ThreadFilterTextErrorLogPublisher(java.lang.Thread thread,
TextWriter writer)
Construct a new instance with the provided settings. |
|
| Method Summary | |
|---|---|
void |
close()
Close this publisher. |
DN |
getDN()
Gets the DN of the configuration entry for this error log publisher. |
void |
initializeErrorLogPublisher(ErrorLogPublisherCfg config)
Initializes this access publisher provider based on the information in the provided debug publisher configuration. |
void |
logError(Message message)
Writes a message to the error log using the provided information. |
| Methods inherited from class org.opends.server.api.ErrorLogPublisher |
|---|
isConfigurationAcceptable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadFilterTextErrorLogPublisher(java.lang.Thread thread,
TextWriter writer)
thread - The thread to log from.writer - The writer used to write the messages.| Method Detail |
|---|
public void initializeErrorLogPublisher(ErrorLogPublisherCfg config)
throws ConfigException,
InitializationException
initializeErrorLogPublisher in class ErrorLogPublisher<ErrorLogPublisherCfg>config - The error publisher configuration that contains
the information to use to initialize this error
publisher.
ConfigException - If an unrecoverable problem arises in
the process of performing the
initialization as a result of the
server configuration.
InitializationException - If a problem occurs during
initialization that is not
related to the server
configuration.public void close()
close in class ErrorLogPublisher<ErrorLogPublisherCfg>public void logError(Message message)
logError in class ErrorLogPublisher<ErrorLogPublisherCfg>message - The message to be logged.public DN getDN()
getDN in class ErrorLogPublisher<ErrorLogPublisherCfg>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||