cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

What are the best practices for python logging function in databricks?

hpant
New Contributor III
 
3 REPLIES 3

szymon_dybczak
Contributor III

Hi @hpant ,

I think they are really similiar to overall best practices when in comes to python logging, like having centralize logging configuration, using correct log levels etc.
Look for example on below article:

10 Best Practices for Logging in Python | Better Stack Community


hpant
New Contributor III

Hi @szymon_dybczak,

Thanks for your reply. I wanted to ask if databricks has something similar to Azure Synapse to store the logs, e.g. log Analytics?

Hi @hpant ,

You can configure diagnostic settings and send the logs to log analytics or storage accounts. Refer to below documentation:

Send Databricks app logs to Azure Monitor - Azure Architecture Center | Microsoft Learn

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