public class ListenerLogDelegator extends java.lang.Object implements ReplicationLog
ListenerLogDelegator implements a replication log that also
sends the messages to the listenerReplicationLog.Level| Constructor and Description |
|---|
ListenerLogDelegator(ReplicationLog log,
ReplicationListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String message)
Log a message with level debug.
|
void |
debug(java.lang.String fmt,
java.lang.Object... args)
Log a message with level debug.
|
void |
error(java.lang.String message)
Log a message with level error.
|
void |
error(java.lang.String fmt,
java.lang.Object... args)
Log a message with level error.
|
ReplicationLog.Level |
getLevel()
Returns the log level of this log
|
java.util.Collection<java.lang.String> |
getLines()
Returns the lines
|
void |
info(java.lang.String message)
Log a message with level info.
|
void |
info(java.lang.String fmt,
java.lang.Object... args)
Log a message with level info.
|
void |
setLevel(ReplicationLog.Level level)
Set the log level
|
void |
warn(java.lang.String message)
Log a message with level warn.
|
void |
warn(java.lang.String fmt,
java.lang.Object... args)
Log a message with level warn.
|
public ListenerLogDelegator(ReplicationLog log, ReplicationListener listener)
public ReplicationLog.Level getLevel()
ReplicationLoggetLevel in interface ReplicationLogpublic void setLevel(ReplicationLog.Level level)
ReplicationLogsetLevel in interface ReplicationLoglevel - the log levelpublic java.util.Collection<java.lang.String> getLines()
ReplicationLoggetLines in interface ReplicationLogpublic void debug(java.lang.String message)
ReplicationLogdebug in interface ReplicationLogmessage - the log messagepublic void debug(java.lang.String fmt,
java.lang.Object... args)
ReplicationLogdebug in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void info(java.lang.String message)
ReplicationLoginfo in interface ReplicationLogmessage - the log messagepublic void info(java.lang.String fmt,
java.lang.Object... args)
ReplicationLoginfo in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void warn(java.lang.String message)
ReplicationLogwarn in interface ReplicationLogmessage - the log messagepublic void warn(java.lang.String fmt,
java.lang.Object... args)
ReplicationLogwarn in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void error(java.lang.String message)
ReplicationLogerror in interface ReplicationLogmessage - the log messagepublic void error(java.lang.String fmt,
java.lang.Object... args)
ReplicationLogerror in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)Copyright © 2010 - 2023 Adobe. All Rights Reserved