public class ListenerLogDelegator extends 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(String message)
Log a message with level debug.
|
void |
debug(String fmt,
Object... args)
Log a message with level debug.
|
void |
error(String message)
Log a message with level error.
|
void |
error(String fmt,
Object... args)
Log a message with level error.
|
ReplicationLog.Level |
getLevel()
Returns the log level of this log
|
Collection<String> |
getLines()
Returns the lines
|
void |
info(String message)
Log a message with level info.
|
void |
info(String fmt,
Object... args)
Log a message with level info.
|
void |
setLevel(ReplicationLog.Level level)
Set the log level
|
void |
warn(String message)
Log a message with level warn.
|
void |
warn(String fmt,
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 Collection<String> getLines()
ReplicationLoggetLines in interface ReplicationLogpublic void debug(String message)
ReplicationLogdebug in interface ReplicationLogmessage - the log messagepublic void debug(String fmt, Object... args)
ReplicationLogdebug in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void info(String message)
ReplicationLoginfo in interface ReplicationLogmessage - the log messagepublic void info(String fmt, Object... args)
ReplicationLoginfo in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void warn(String message)
ReplicationLogwarn in interface ReplicationLogmessage - the log messagepublic void warn(String fmt, Object... args)
ReplicationLogwarn in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)public void error(String message)
ReplicationLogerror in interface ReplicationLogmessage - the log messagepublic void error(String fmt, Object... args)
ReplicationLogerror in interface ReplicationLogfmt - the message formatargs - the message argumentsString.format(String, Object...)Copyright © 2010 - 2020 Adobe. All Rights Reserved