cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Python Logging cant save log in DBFS

Kaizen
Valued Contributor

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

Kaizen_0-1707174350136.png

 

2 REPLIES 2

feiyun0112
Honored Contributor

Kaizen
Valued Contributor

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:

1)  https://community.databricks.com/t5/data-engineering/pyspark-logging-custom-to-azure-blob-mount-dire...

2) https://community.databricks.com/t5/data-engineering/how-to-add-i-custom-logging-in-databricks/m-...

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group