logger ¤
trace ¤
TRACE level logger.
To display TRACE logs, set the logging level to 5.
Example:
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
"stream": sys.stdout,
},
},
"loggers": {
"django_components": {
"level": 5,
"handlers": ["console"],
},
},
}
Source code in src/django_components/logger.py
trace_msg ¤
trace_msg(
action: Literal["PARSE", "ASSOC", "RENDR", "GET", "SET"],
node_type: Literal["COMP", "FILL", "SLOT", "PROVIDE", "N/A"],
node_name: str,
node_id: str,
msg: str = "",
component_id: Optional[str] = None,
) -> None
TRACE level logger with opinionated format for tracing interaction of components, nodes, and slots. Formats messages like so:
"ASSOC SLOT test_slot ID 0088 TO COMP 0087"