<?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 Not readable format of event_logs traceback in dlt pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/110718#M43654</link>
    <description>&lt;P&gt;This is my dlt pipeline event_log - why is it not in readable foramt how can i correct it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashraf1395_0-1740044260033.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14979iD8F1BDE26C618BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashraf1395_0-1740044260033.png" alt="ashraf1395_0-1740044260033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my pipeline code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import logging

logger = logging.getLogger(__name__)

logger.info("Error")
raise "Error is error"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 09:40:27 GMT</pubDate>
    <dc:creator>ashraf1395</dc:creator>
    <dc:date>2025-02-20T09:40:27Z</dc:date>
    <item>
      <title>Not readable format of event_logs traceback in dlt pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/110718#M43654</link>
      <description>&lt;P&gt;This is my dlt pipeline event_log - why is it not in readable foramt how can i correct it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashraf1395_0-1740044260033.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14979iD8F1BDE26C618BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashraf1395_0-1740044260033.png" alt="ashraf1395_0-1740044260033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my pipeline code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import logging

logger = logging.getLogger(__name__)

logger.info("Error")
raise "Error is error"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 09:40:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/110718#M43654</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-02-20T09:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Not readable format of event_logs traceback in dlt pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/112325#M44180</link>
      <description>&lt;P&gt;Got the solution to this error,&amp;nbsp;&lt;BR /&gt;It was because of multiple loggers initialized and all those handlers were not getting cleard - Databricks dlt pipeline handles, my custom code logs etc.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Once I added this command&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Remove existing handlers to avoid duplicates&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;logger&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;hasHandlers&lt;/SPAN&gt;&lt;SPAN&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;logger&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;handlers&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;clear&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;the format of the code got correct.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One more thing I found out was, this unknown formats were nothing but colour codes which we see in the dlt pipeline event logs. Since the handlers was not getting cleared when it was going in my custom code logs it was also trying to add colour code formats there which was causing trouble once I added clear handles before initializing it in my code, It worked&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Mar 2025 05:38:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/112325#M44180</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-03-12T05:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not readable format of event_logs traceback in dlt pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/113997#M44703</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104610"&gt;@ashraf1395&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;I'm working with Delta Live Tables (DLT) and the event_log table. I would like to know if it is possible to access the event handler that DLT uses to write custom logs and send them to this table when events are published.&lt;/P&gt;&lt;P class=""&gt;If this is not possible, do you have any alternative ideas? For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Creating a custom handler with the necessary logic.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Inserting records directly into the event_log table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Mar 2025 11:56:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-readable-format-of-event-logs-traceback-in-dlt-pipeline/m-p/113997#M44703</guid>
      <dc:creator>jorperort</dc:creator>
      <dc:date>2025-03-30T11:56:56Z</dc:date>
    </item>
  </channel>
</rss>

