sockets.py 文件源码

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

项目:logging2 作者: vforgione 项目源码 文件源码
def __init__(
            self,
            node: str,
            encoding: Optional[str]='utf8',
            name: Optional[str]=None,
            level: Optional[LogLevel]=None
    ):
        """Instantiates a new ``UnixHandler``

        :param node: the path to the socket node on the system
        :param encoding: the message encoding
        :param name: the name of the handler
        :param level: the minimum verbosity level to write log entries
        """
        super().__init__(
            name=name, level=level, host=node, family=socket.AF_UNIX,
            type=socket.SOCK_DGRAM, encoding=encoding)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号