mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-09 22:08:38 +03:00
13 lines
263 B
Python
13 lines
263 B
Python
"""Runtime log visibility controls shared by CLI commands."""
|
|
|
|
from loguru import logger
|
|
|
|
__all__ = ["_set_nanobot_logs"]
|
|
|
|
|
|
def _set_nanobot_logs(enabled: bool) -> None:
|
|
if enabled:
|
|
logger.enable("nanobot")
|
|
else:
|
|
logger.disable("nanobot")
|