/usr/lib/python2.6/site-packages/supervisor/medusa
NameSizeModeActions
auth_handler.py47390644editdlrm
auth_handler.pyc45130644editdlrm
auth_handler.pyo45130644editdlrm
chat_server.py45350644editdlrm
chat_server.pyc64270644editdlrm
chat_server.pyo64270644editdlrm
counter.py14400644editdlrm
counter.pyc20390644editdlrm
counter.pyo20390644editdlrm
default_handler.py63310644editdlrm
default_handler.pyc50340644editdlrm
default_handler.pyo50340644editdlrm
event_loop.py29810644editdlrm
event_loop.pyc35130644editdlrm
event_loop.pyo35130644editdlrm
filesys.py112060644editdlrm
filesys.pyc135980644editdlrm
filesys.pyo135980644editdlrm
ftp_server.py405520644editdlrm
ftp_server.pyc347270644editdlrm
ftp_server.pyo347270644editdlrm
http_date.py34150644editdlrm
http_date.pyc34680644editdlrm
http_date.pyo34680644editdlrm
http_server.py252170644editdlrm
http_server.pyc214680644editdlrm
http_server.pyo214680644editdlrm
logger.py80000644editdlrm
logger.pyc109900644editdlrm
logger.pyo109900644editdlrm
medusa_gif.py27720644editdlrm
medusa_gif.pyc11560644editdlrm
medusa_gif.pyo11560644editdlrm
monitor.py110540644editdlrm
monitor.pyc122850644editdlrm
monitor.pyo122850644editdlrm
monitor_client.py32730644editdlrm
monitor_client.pyc53900644editdlrm
monitor_client.pyo53900644editdlrm
monitor_client_win32.py13340644editdlrm
monitor_client_win32.pyc20940644editdlrm
monitor_client_win32.pyo20940644editdlrm
m_syslog.py73510644editdlrm
m_syslog.pyc40060644editdlrm
m_syslog.pyo40060644editdlrm
producers.py94390644editdlrm
producers.pyc116340644editdlrm
producers.pyo116340644editdlrm
put_handler.py33240644editdlrm
put_handler.pyc35110644editdlrm
put_handler.pyo35110644editdlrm
redirecting_handler.py14030644editdlrm
redirecting_handler.pyc21590644editdlrm
redirecting_handler.pyo21590644editdlrm
resolver.py155590644editdlrm
resolver.pyc124010644editdlrm
resolver.pyo124010644editdlrm
rpc_client.py96750644editdlrm
rpc_client.pyc103460644editdlrm
rpc_client.pyo103460644editdlrm
rpc_server.py99530644editdlrm
rpc_server.pyc95360644editdlrm
rpc_server.pyo95360644editdlrm
script_handler.py65540644editdlrm
script_handler.pyc66510644editdlrm
script_handler.pyo66510644editdlrm
setup.py4960644editdlrm
setup.pyc7290644editdlrm
setup.pyo7290644editdlrm
status_handler.py93520644editdlrm
status_handler.pyc96720644editdlrm
status_handler.pyo96720644editdlrm
unix_user_handler.py23120644editdlrm
unix_user_handler.pyc23610644editdlrm
unix_user_handler.pyo23610644editdlrm
virtual_handler.py17240644editdlrm
virtual_handler.pyc31640644editdlrm
virtual_handler.pyo31640644editdlrm
xmlrpc_handler.py29440644editdlrm
xmlrpc_handler.pyc37840644editdlrm
xmlrpc_handler.pyo37840644editdlrm
__init__.py1280644editdlrm
__init__.pyc2770644editdlrm
__init__.pyo2770644editdlrm
Edit: /usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyc (4006B)
Ñò FATc@s°dZdZdZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZdZd Zd Zd Zd Zd ZdZdZdZdZdZdZh ed6ed6ed6ed6ed6ed6ed6ed6ed6ed6ed6Zhe d6ed 6ed!6e d"6e d#6ed$6e d%6ed&6e d'6ed(6e d)6ed*6ed+6ed,6ed-6ed.6ed/6ed06ed16ed26Zd3d4kZd5d7d6„ƒYZd4S(8s:socket interface to unix syslog. On Unix, there are usually two ways of getting to syslog: via a local unix-domain socket, or via the TCP service. Usually "/dev/log" is the unix domain socket. This may be different for other systems. >>> my_client = syslog_client ('/dev/log') Otherwise, just use the UDP version, port 514. >>> my_client = syslog_client (('my_log_host', 514)) On win32, you will have to use the UDP version. Note that you can use this to log to other hosts (and indeed, multiple hosts). This module is not a drop-in replacement for the python extension module - the interface is different. Usage: >>> c = syslog_client() >>> c = syslog_client ('/strange/non_standard_log_location') >>> c = syslog_client (('other_host.com', 514)) >>> c.log ('testing', facility='local0', priority='debug') iiiiiiiiii i iiiiiiiitalerttcrittdebugtemergterrterrortinfotnoticetpanictwarntwarningtauthtauthprivtcrontdaemontkerntlprtmailtnewstsecuritytsyslogtusertuucptlocal0tlocal1tlocal2tlocal3tlocal4tlocal5tlocal6tlocal7iÿÿÿÿNt syslog_clientcBs;eZdd„ZdZeed„Zd„Zd„ZRS(s/dev/logcCs·||_d|_t|tdƒƒopy/tititiƒ|_|ii|ƒWq³tij o+tititi ƒ|_d|_q³Xntiti tiƒ|_dS(Niti( taddresststreamt isinstancettypetsockettAF_UNIXt SOCK_DGRAMtconnectRt SOCK_STREAMtAF_INET(tselfR!((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyt__init__Œs   s<%d>%scCsW|i|i||ƒ|f}|io|ii|ƒn|ii||iƒdS(N(tlog_format_stringtencode_priorityR"R%tsendtsendtoR!(R+tmessagetfacilitytpriority((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pytlog£s   cCsZt|ƒtdƒjot|}nt|ƒtdƒjot|}n|d>|BS(NR i(R$tfacility_namestpriority_names(R+R2R3((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyR.­s cCs|io|iiƒndS(N(R"R%tclose(R+((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyR7´s ( t__name__t __module__R,R-tLOG_USERtLOG_INFOR4R.R7(((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyR‹s   (( t__doc__t LOG_EMERGt LOG_ALERTtLOG_CRITtLOG_ERRt LOG_WARNINGt LOG_NOTICER;t LOG_DEBUGtLOG_KERNR:tLOG_MAILt LOG_DAEMONtLOG_AUTHt LOG_SYSLOGtLOG_LPRtLOG_NEWStLOG_UUCPtLOG_CRONt LOG_AUTHPRIVt LOG_LOCAL0t LOG_LOCAL1t LOG_LOCAL2t LOG_LOCAL3t LOG_LOCAL4t LOG_LOCAL5t LOG_LOCAL6t LOG_LOCAL7R6R5R%R(((s>/usr/lib/python2.6/site-packages/supervisor/medusa/m_syslog.pyt5s|