public class SyslogLogger extends java.lang.Object implements LoggerInterface, SecsEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static int |
SYSLOG_FACILITY |
static java.lang.String |
SYSLOG_HOST |
static int |
SYSLOG_LOG_LEVEL |
static int |
SYSLOG_PORT |
Constructor and Description |
---|
SyslogLogger(java.lang.String receiveString,
java.lang.String sendString) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
displayBytes(byte[] data) |
boolean |
getDisplayBytes() |
boolean |
getDisplayMessages() |
static void |
log(java.lang.String logDirection,
java.lang.String msg)
Send the give string to the syslog.
|
static void |
main(java.lang.String[] args) |
void |
received(byte[] data)
This will be called wheneever raw bytes of data are read from the port.
|
void |
received(SecsMsg msg)
Called whenever a message is received.
|
void |
register() |
void |
register(SecsEventHandler theHandler) |
void |
registerForId(int id) |
void |
registerForId(SecsEventHandler theHandler,
int id) |
void |
secsEvent(SecsEvent theEvent)
This method will be called when a SecsEvent accurs.
|
void |
sent(byte[] data)
Called whenever data is sent through the port.
|
void |
sent(SecsMsg msg)
Called whenever a message is sent.
|
void |
setDisplayBytes(boolean newValue)
This allows the logger to control the display of byte data.
|
void |
setDisplayEvents(boolean newValue)
This method will turn on the display of all events.
|
void |
setDisplayMessages(boolean newValue)
This allows the logger to control the display of message data.
|
public static final java.lang.String cvsRev
public static final int SYSLOG_FACILITY
public static final java.lang.String SYSLOG_HOST
public static final int SYSLOG_LOG_LEVEL
public static final int SYSLOG_PORT
public SyslogLogger(java.lang.String receiveString, java.lang.String sendString)
public java.lang.String displayBytes(byte[] data)
public boolean getDisplayBytes()
public boolean getDisplayMessages()
public static void log(java.lang.String logDirection, java.lang.String msg)
public static void main(java.lang.String[] args)
public void received(byte[] data)
LoggerInterface
received
in interface LoggerInterface
public void received(SecsMsg msg)
LoggerInterface
received
in interface LoggerInterface
public void register()
public void register(SecsEventHandler theHandler)
public void registerForId(int id)
public void registerForId(SecsEventHandler theHandler, int id)
public void secsEvent(SecsEvent theEvent)
SecsEventListener
secsEvent
in interface SecsEventListener
public void sent(byte[] data)
LoggerInterface
sent
in interface LoggerInterface
public void sent(SecsMsg msg)
LoggerInterface
sent
in interface LoggerInterface
public void setDisplayBytes(boolean newValue)
LoggerInterface
setDisplayBytes
in interface LoggerInterface
public void setDisplayEvents(boolean newValue)
setDisplayEvents
in interface LoggerInterface
public void setDisplayMessages(boolean newValue)
LoggerInterface
setDisplayMessages
in interface LoggerInterface
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.