public class MultiLogger extends java.lang.Object implements LoggerInterface
cvsRev
Modifier and Type | Method and Description |
---|---|
void |
addLogger(LoggerInterface logger)
Adds a logger.
|
static MultiLogger |
getMultiLogger(java.lang.String name)
Return the multi-loger for the given name, creating it if necessary .
|
void |
received(byte[] data)
Passed through to all the loggers.
|
void |
received(SecsMsg msg)
Passed through to all the loggers.
|
void |
removeLogger(LoggerInterface logger)
Removes a logger.
|
void |
secsEvent(SecsEvent theEvent)
Passed through to all the loggers.
|
void |
sent(byte[] data)
Passed through to all the loggers.
|
void |
sent(SecsMsg msg)
Passed through to all the loggers.
|
void |
setDisplayBytes(boolean newValue)
Passed through to all the loggers.
|
void |
setDisplayEvents(boolean newValue)
Passed through to all the loggers.
|
void |
setDisplayMessages(boolean newValue)
Passed through to all the loggers.
|
java.lang.String |
toString()
Create a string that lists the loggers were a passing through to.
|
public void addLogger(LoggerInterface logger)
public static MultiLogger getMultiLogger(java.lang.String name)
public void received(byte[] data)
received
in interface LoggerInterface
LoggerInterface.received(byte[])
public void received(SecsMsg msg)
received
in interface LoggerInterface
LoggerInterface.received(com.ergotech.secs.SecsMsg)
public void removeLogger(LoggerInterface logger)
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
SecsEventListener.secsEvent(com.ergotech.secs.SecsEvent)
public void sent(byte[] data)
sent
in interface LoggerInterface
LoggerInterface.sent(byte[])
public void sent(SecsMsg msg)
sent
in interface LoggerInterface
LoggerInterface.sent(com.ergotech.secs.SecsMsg)
public void setDisplayBytes(boolean newValue)
setDisplayBytes
in interface LoggerInterface
LoggerInterface.setDisplayBytes(boolean)
public void setDisplayEvents(boolean newValue)
setDisplayEvents
in interface LoggerInterface
LoggerInterface.setDisplayEvents(boolean)
public void setDisplayMessages(boolean newValue)
setDisplayMessages
in interface LoggerInterface
LoggerInterface.setDisplayMessages(boolean)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.