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()
ReplicationLog
getLevel
in interface ReplicationLog
public void setLevel(ReplicationLog.Level level)
ReplicationLog
setLevel
in interface ReplicationLog
level
- the log levelpublic Collection<String> getLines()
ReplicationLog
getLines
in interface ReplicationLog
public void debug(String message)
ReplicationLog
debug
in interface ReplicationLog
message
- the log messagepublic void debug(String fmt, Object... args)
ReplicationLog
debug
in interface ReplicationLog
fmt
- the message formatargs
- the message argumentsString.format(String, Object...)
public void info(String message)
ReplicationLog
info
in interface ReplicationLog
message
- the log messagepublic void info(String fmt, Object... args)
ReplicationLog
info
in interface ReplicationLog
fmt
- the message formatargs
- the message argumentsString.format(String, Object...)
public void warn(String message)
ReplicationLog
warn
in interface ReplicationLog
message
- the log messagepublic void warn(String fmt, Object... args)
ReplicationLog
warn
in interface ReplicationLog
fmt
- the message formatargs
- the message argumentsString.format(String, Object...)
public void error(String message)
ReplicationLog
error
in interface ReplicationLog
message
- the log messagepublic void error(String fmt, Object... args)
ReplicationLog
error
in interface ReplicationLog
fmt
- the message formatargs
- the message argumentsString.format(String, Object...)
Copyright © 2010 - 2020 Adobe. All Rights Reserved