Trees | Index | Help |
|
---|
Package ZenEvents :: Module zensyslog :: Class ZenSyslog |
|
AbstractDatagramProtocol
--+ |DatagramProtocol
--+ |CmdBase
--+ | | |ZenDaemon
--+ | | |ZCmdBase
--+ | | |EventServer
--+ | ZenSyslog
Method Summary | |
---|---|
__init__(self)
| |
basic options setup sub classes can add more options here | |
Use a separate thread to process the request. | |
process a single syslog message, called from the inherited thread | |
expands a syslog message into a string format suitable for writing to the filesystem such that it appears the same as it would had the message been logged by the syslog daemon. | |
send the resolved address, if possible, and the event via the thread | |
Inherited from DatagramProtocol :
connectionRefused
Inherited from AbstractDatagramProtocol :
__getstate__ ,
doStart ,
doStop ,
makeConnection ,
startProtocol ,
stopProtocol
Inherited from EventServer :
finish ,
heartbeat ,
main ,
report ,
reportCycle ,
run ,
sendEvent ,
sendEvents ,
sigTerm ,
useTcpFileDescriptor ,
useUdpFileDescriptor ,
_wakeUpReactorAndHandleSignals
Inherited from ZCmdBase :
closeAll ,
closedb ,
findDevice ,
getConnection ,
getContext ,
getDataRoot ,
getDmdObj ,
login ,
logout ,
opendb ,
syncdb ,
zeoConnect
Inherited from ZenDaemon :
becomeDaemon ,
changeUser ,
setupLogging
Inherited from CmdBase :
buildParser ,
parseOptions
|
Class Variable Summary | |
---|---|
str |
name = 'zensyslog'
|
str |
SAMPLE_DATE = 'Apr 10 15:19:22'
|
str |
SYSLOG_DATE_FORMAT = '%b %d %H:%M:%S'
|
Inherited from AbstractDatagramProtocol :
noisy ,
numPorts ,
transport
Inherited from ZenDaemon :
pidfile
Inherited from CmdBase :
doesLogging
|
Method Details |
---|
buildOptions(self)basic options setup sub classes can add more options here
|
datagramReceived(self, msg, client_address)Use a separate thread to process the request. |
doHandleRequest(self, host, msg, ipaddr, rtime)process a single syslog message, called from the inherited thread |
expand(self, msg, client_address)expands a syslog message into a string format suitable for writing to the filesystem such that it appears the same as it would had the message been logged by the syslog daemon. |
gotHostname(self, response, data)send the resolved address, if possible, and the event via the thread |
Class Variable Details |
---|
name
|
SAMPLE_DATE
|
SYSLOG_DATE_FORMAT
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:11 2007 | http://epydoc.sf.net |