Python 如何写 Ubuntu syslog
摘要:
address='/dev/log' 是关键 import logging from logging.handlers import SysLogHandler logger = logging.getLogger() logger.setLevel(logging.INFO) syslog = SysLogHandler(address='/dev/log') formatter = log... 阅读全文
posted @ 2019-07-31 14:58 liujx2019 阅读(176) 评论(0) 推荐(0) 编辑