mò "á¸Ec@sëdZdZdZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZdZd Zd Zd Zd Zd ZdZdZdZdZdZdZhde<de<de<de<de<de<de<de<de<de<de>> 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 iiiiiiiitalerttcrittdebugtemergterrterrortinfotnoticetpanictwarntwarningtauthtauthprivtcrontdaemontkerntlprtmailtnewstsecuritytsyslogtusertuucptlocal0tlocal1tlocal2tlocal3tlocal4tlocal5tlocal6tlocal7Nt syslog_clientcBs;tZdd„ZdZeed„Zd„Zd„ZRS(Ns/dev/logcCs»||_t|ƒtdƒjoqy/tititiƒ|_|ii|ƒWn2tititiƒ|_|ii|ƒnXd|_n%titi tiƒ|_d|_dS(Ntii( taddresstselfttypetsockettAF_UNIXt SOCK_DGRAMtconnectt SOCK_STREAMtunixtAF_INET(R"R!((t6/data/zmath/zope/lib/python/ZServer/medusa/m_syslog.pyt__init__s     s<%d>%scCsW|i|i||ƒ|f}|io|ii|ƒn|ii ||i ƒdS(N( R"tlog_format_stringtencode_prioritytfacilitytprioritytmessageR)R$tsendtsendtoR!(R"R1R/R0((R+tlog¡s cCsZt|ƒtdƒjot|}nt|ƒtdƒjot|}n|d>|BS(NR i(R#R/tfacility_namesR0tpriority_names(R"R/R0((R+R.«s cCs|io|iiƒndS(N(R"R)R$tclose(R"((R+R7²s ( t__name__t __module__R,R-tLOG_USERtLOG_INFOR4R.R7(((R+R‹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(R?R@R>RERR=R;RHRLRCRAR6RMRFRNRDRQR:RKRRRSRTRURJRORPRBRGR$RIR5((R+t?5s>iº