禁用整个DSPy中事件记录API所使用的DSPyLoggingStream
(eprint(), logger.info()等), 使所有后续事件日志静默。
Source code in dspy/utils/logging_utils.py
| def disable_logging():
"""
Disables the `DSPyLoggingStream` used by event logging APIs throughout DSPy
(`eprint()`, `logger.info()`, etc), silencing all subsequent event logs.
"""
DSPY_LOGGING_STREAM.enabled = False
|