Package org.opends.server.loggers
Class ConsoleDebugLogPublisher
- java.lang.Object
-
- org.opends.server.loggers.DebugLogPublisher<DebugLogPublisherCfg>
-
- org.opends.server.loggers.ConsoleDebugLogPublisher
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LogPublisher<DebugLogPublisherCfg>
public final class ConsoleDebugLogPublisher extends DebugLogPublisher<DebugLogPublisherCfg>
The debug log publisher implementation that writes debug messages in a friendly for console output.
-
-
Constructor Summary
Constructors Constructor Description ConsoleDebugLogPublisher(PrintStream err)
Constructs a new ConsoleDebugLogPublisher that writes debug messages to the given PrintStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this publisher.Dn
getDN()
Gets the DN of the configuration entry for this log publisher.void
initializeLogPublisher(DebugLogPublisherCfg config, ServerContext serverContext)
Initializes this publisher provider based on the information in the provided debug publisher configuration.void
trace(TraceSettings settings, String signature, String sourceLocation, String msg, Throwable exception, StackTraceElement[] stackTrace)
-
Methods inherited from class org.opends.server.loggers.DebugLogPublisher
isConfigurationAcceptable
-
-
-
-
Constructor Detail
-
ConsoleDebugLogPublisher
public ConsoleDebugLogPublisher(PrintStream err)
Constructs a new ConsoleDebugLogPublisher that writes debug messages to the given PrintStream.- Parameters:
err
- The PrintStream to write messages to.
-
-
Method Detail
-
initializeLogPublisher
public void initializeLogPublisher(DebugLogPublisherCfg config, ServerContext serverContext)
Description copied from interface:LogPublisher
Initializes this publisher provider based on the information in the provided debug publisher configuration.- Parameters:
config
- The publisher configuration that contains the information to use to initialize this publisher.serverContext
- The server context.
-
trace
public void trace(TraceSettings settings, String signature, String sourceLocation, String msg, Throwable exception, StackTraceElement[] stackTrace)
-
close
public void close()
Description copied from interface:LogPublisher
Close this publisher.
-
getDN
public Dn getDN()
Description copied from interface:LogPublisher
Gets the DN of the configuration entry for this log publisher.- Returns:
- The configuration entry DN.
-
-