Python Logging cant save log in DBFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 03:06 PM
Hi! I am trying to integrate logging into my project. Got the library and logs to work but cant log the file into DBFS directly.
Have any of you been able to save and append the log file directly to dbfs? From what i came across online the best way to do this is log it locally on your cluster and then copy or move the file to dbfs when done.
@DataBricks - it would be great to do this to monitor issues that might occur during the runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 06:15 PM
you can use azure_storage_logging
Set Python Logging to Azure Blob, but Can not Find Log File there - Stack Overflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 01:41 PM
Nice I will be trying that shortly BUTTTT
Another way to do this is through enabling logging on the cluster on dbfs and then adding custom logging on top of the spark logging. These two articles walk through the steps:

