Skip to content

Add ability to also write log output to a configured file #86

@nfx

Description

@nfx

Currently logs are printed to stdout only and it's truncated in the notebook cell. We need a second logging destination for troubleshooting

This problem persists in python wheel tasks as well:

image

use {{job_id}} and {{run_id}} and {{task_key}} as injected parameters to distinguish the logs.

https://docs.databricks.com/en/workflows/jobs/task-parameter-variables.html

use try ... finally ... to ensure the log file is flushed

https://docs.python.org/3/library/logging.handlers.html#filehandler

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions