<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python Logging cant save log in DBFS in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59337#M6455</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23348"&gt;@DataBricks&lt;/a&gt; - it would be great to do this to monitor issues that might occur during the runtime&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaizen_0-1707174350136.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6107iF59A6E91F06BE5C6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kaizen_0-1707174350136.png" alt="Kaizen_0-1707174350136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 23:06:48 GMT</pubDate>
    <dc:creator>Kaizen</dc:creator>
    <dc:date>2024-02-05T23:06:48Z</dc:date>
    <item>
      <title>Python Logging cant save log in DBFS</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59337#M6455</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23348"&gt;@DataBricks&lt;/a&gt; - it would be great to do this to monitor issues that might occur during the runtime&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaizen_0-1707174350136.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6107iF59A6E91F06BE5C6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kaizen_0-1707174350136.png" alt="Kaizen_0-1707174350136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 23:06:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59337#M6455</guid>
      <dc:creator>Kaizen</dc:creator>
      <dc:date>2024-02-05T23:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python Logging cant save log in DBFS</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59344#M6456</link>
      <description>&lt;P&gt;you can use&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;azure_storage_logging&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/51586370/set-python-logging-to-azure-blob-but-can-not-find-log-file-there" target="_blank"&gt;Set Python Logging to Azure Blob, but Can not Find Log File there - Stack Overflow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 02:15:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59344#M6456</guid>
      <dc:creator>feiyun0112</dc:creator>
      <dc:date>2024-02-06T02:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python Logging cant save log in DBFS</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59515#M6457</link>
      <description>&lt;P&gt;Nice I will be trying that shortly BUTTTT&lt;BR /&gt;&lt;BR /&gt;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:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/pyspark-logging-custom-to-azure-blob-mount-directory/m-p/11007#M6048" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/pyspark-logging-custom-to-azure-blob-mount-directory/m-p/11007#M6048&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/how-to-add-i-custom-logging-in-databricks/m-p/20831" target="_blank"&gt;2) https://community.databricks.com/t5/data-engineering/how-to-add-i-custom-logging-in-databricks/m-p/20831&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 21:41:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-logging-cant-save-log-in-dbfs/m-p/59515#M6457</guid>
      <dc:creator>Kaizen</dc:creator>
      <dc:date>2024-02-06T21:41:11Z</dc:date>
    </item>
  </channel>
</rss>

