log_server 模块
用于处理来自多个进程的日志记录的服务器。
函数
install_sockethandler
为对应于给定命名空间的记录器安装 DelegateHandler。
记录器将自动禁用日志传播。
install_sockethandler(name: str, host: str | None = None, port: int | None = None) -> None
参数
| 名称 | 说明 |
|---|---|
|
name
必需
|
记录器的名称 |
|
host
|
未使用 默认值: None
|
|
port
|
未使用 默认值: None
|