nbprint.models.LoggingConfig¶
- pydantic model nbprint.models.LoggingConfig[source]¶
Bases:
Content- field version: int = 1¶
- field disable_existing_loggers: bool = False¶
- field formatters: Annotated[dict[str, dict[str, str | dict[str, str]]], SerializeAsAny()] = {'colorlog': {'()': 'colorlog.ColoredFormatter', 'format': '[%(cyan)s%(asctime)s%(reset)s][%(threadName)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]: %(message)s', 'log_colors': {'CRITICAL': 'red', 'DEBUG': 'white', 'ERROR': 'red', 'INFO': 'green', 'WARNING': 'yellow'}}, 'simple': {'format': '[%(asctime)s][%(threadName)s][%(name)s][%(levelname)s]: %(message)s'}, 'whenAndWhere': {'format': '[%(asctime)s][%(threadName)s][%(name)s][%(filename)s:%(lineno)d][%(levelname)s]: %(message)s'}}¶
- field handlers: Annotated[dict[str, dict[str, str]], SerializeAsAny()] = {'console': {'class': 'ccflow.utils.logging.StreamHandler', 'formatter': 'colorlog', 'level': 'WARNING', 'stream': 'ext://sys.stdout'}}¶
- field root: Annotated[dict[str, str | list[str]], SerializeAsAny()] = {'handlers': ['console'], 'level': 'DEBUG'}¶