本文整理汇总了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)