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)
评论列表
文章目录