sockets.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:logging2 作者: vforgione 项目源码 文件源码
def __init__(
            self,
            facility: Optional[int]=syslog.LOG_USER,
            host: Optional[str]='localhost',
            port: Optional[int]=514,
            encoding: Optional[str]='utf8',
            name: Optional[str]=None,
            level: Optional[LogLevel]=None
    ):
        """Instantiates a new ``SyslogHandler``

        :param facility: the syslog facility
        :param host: the hostname of the syslog server
        :param port: the port of the syslog server
        :param encoding: the message encoding
        :param name: the name of the handler
        :param level: the minimum verbosity level to write log entries
        """
        self.facility = facility
        super().__init__(
            name=name, level=level, host=host, port=port, family=socket.AF_INET,
            type=socket.SOCK_DGRAM, encoding=encoding)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号