本文整理匯總了Python中syslog.LOG_DAEMON屬性的典型用法代碼示例。如果您正苦於以下問題:Python syslog.LOG_DAEMON屬性的具體用法?Python syslog.LOG_DAEMON怎麽用?Python syslog.LOG_DAEMON使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類syslog
的用法示例。
在下文中一共展示了syslog.LOG_DAEMON屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self):
"""Initialize live parser"""
self.parser = None
self.parser_name = None
self.event_type = None
self.log_source = None
syslog.openlog(facility=syslog.LOG_DAEMON)
示例2: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self, config='/opt/LogESP/config/parser.conf'):
"""Initialize live parser"""
self.conf = config
self.threads = []
syslog.openlog(facility=syslog.LOG_DAEMON)
示例3: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self):
"""Initialize daemon core object"""
# Open our log facility:
syslog.openlog(facility=syslog.LOG_DAEMON)
示例4: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self):
"""Initialize sentry core"""
self.rule_types = {}
self.threads = {}
syslog.openlog(facility=syslog.LOG_DAEMON)
示例5: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self):
"""Initialize trigger engine"""
self.rlist = []
self.rules = []
self.newrules = []
self.threads = {}
syslog.openlog(facility=syslog.LOG_DAEMON)
示例6: __init__
# 需要導入模塊: import syslog [as 別名]
# 或者: from syslog import LOG_DAEMON [as 別名]
def __init__(self, rule):
"""Initialize trigger object"""
self.rule = rule
self.tzone = TIME_ZONE
self.lasteventid = None
self.justfired = False
self.timeint = timedelta(minutes=self.rule.time_int)
syslog.openlog(facility=syslog.LOG_DAEMON)