Doel
Write structured Element execution diagnostics captured in execution log details.
Elements runtime reference / Diagnostics
loggerWrite structured Element execution diagnostics captured in execution log details.
logger.info(message, *args, **kwargs) / logger.exception(message, *args, **kwargs)
Write structured Element execution diagnostics captured in execution log details.
logger.infologger.warninglogger.errorlogger.exceptionUse these fields as the Python call arguments or keyword payload for this helper.
{
"level": "info|warning|error|exception",
"message": "sync failed",
"extra": {
"batchId": "batch-123"
}
}
| Field | Description |
|---|---|
message | Log message string. Prefer bounded operational context. |
args/kwargs | Standard Python logging arguments. |
{
"severity": "ERROR",
"logger": "dashview.element",
"message": "sync failed",
"timestamp": "2026-07-06T12:00:00Z",
"stackTrace": "... for logger.exception"
}
def run():
try:
sync_rows()
except Exception:
logger.exception("sync failed")
raise