

{"id":26163,"date":"2018-08-26T05:20:07","date_gmt":"2018-08-25T23:50:07","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=26163"},"modified":"2026-04-24T17:55:55","modified_gmt":"2026-04-24T12:25:55","slug":"python-logging","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-logging\/","title":{"rendered":"Python Logging Module &#8211; Explore Logging File &amp; Levels"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In this Python tutorial, we will discuss how to perform Python Logging. Moreover, we will use the Python <\/span><i><span style=\"font-weight: 400\">logging<\/span><\/i><span style=\"font-weight: 400\"> module for this. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Also, we will discuss debug, set level, and error in Python Logging.<\/span><\/p>\n<p>So, let&#8217;s start the Python Logging Tutorial.<\/p>\n<div id=\"attachment_26195\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-26195\" class=\"wp-image-26195 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg\" alt=\"Python Logging Tutorial - Levels &amp;amp; Examples\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-26195\" class=\"wp-caption-text\">Python Logging Tutorial &#8211; Levels &amp; Examples<\/p><\/div>\n<h3>What is Logging in Python?<\/h3>\n<p><span style=\"font-weight: 400\">Logging, in software applications, is a way to track events. Before we can proceed, telling you more about it, we want to exemplify.<\/span><\/p>\n<p><strong>How does logging work in Python?<\/strong><\/p>\n<ul>\n<li>Create an object that will help you handle your loggings.<\/li>\n<li>Guide the object regarding what you want to track ( like an information or an error) and how you want the message to look.<\/li>\n<li>Use the created object in your code whenever you want to record any event.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; import logging\r\n&gt;&gt;&gt; logging.warning('This is a warning')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">WARNING:root:This is a warning<\/div>\n<p>Basically, Logging is a module in the Python Standard Library ever since version 2.3. Effectively, logging is a way to track events occurring when we run a piece of software.<\/p>\n<p>As a developer, you add logging calls to your code, denoting the occurrence of certain events. Purposes of logging in Python are two-<\/p>\n<ul>\n<li><strong>Diagnostic Logging-<\/strong> To record events that revolve around the application\u2019s operation.<\/li>\n<li><strong>Audit Logging-<\/strong> To record events for business analysis.<\/li>\n<\/ul>\n<h3>Python Logging to File<\/h3>\n<p><span style=\"font-weight: 400\">What if we wanted to save these messages to a text file instead of throwing them to the Logging console?<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; import logging\r\n&gt;&gt;&gt; logging.basicConfig(filename='demolog.log',level=logging.DEBUG)\r\n&gt;&gt;&gt; logging.warning('This is a warning'); logging.warning('You may run into issues with your code')<\/pre>\n<div id=\"attachment_26196\" style=\"width: 492px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/warning.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-26196\" class=\"wp-image-26196 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/warning.png\" alt=\"Python Logging\" width=\"482\" height=\"126\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/warning.png 482w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/warning-150x39.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/warning-300x78.png 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/a><p id=\"caption-attachment-26196\" class=\"wp-caption-text\">Python Logging to Files<\/p><\/div>\n<p><span style=\"font-weight: 400\">We pass a filename argument to the logging.basicConfig() method. Here, we call our file demolog.log. Such a file is one we can consult over time.<\/span><\/p>\n<h4>1. Python Logging Levels &#8211; Severity<\/h4>\n<p><span style=\"font-weight: 400\">To the basicConfig() method above, we passed the severity level logging.DEBUG. This is the importance the developer ascribes to an event. We have several other values-<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>DEBUG: <\/strong>Information for problem diagnostics only.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>INFO:<\/strong>\u00a0The program runs as expected.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>WARNING:<\/strong>\u00a0To indicate that something went wrong.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>ERROR:<\/strong>\u00a0This means the software no longer functions.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>CRITICAL:<\/strong>\u00a0For a very serious error.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Here, WARNING is the default logging level; this ignores other messages.<\/span><br \/>\n<span style=\"font-weight: 400\">With this default, nothing shows up for a call to info().<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; import logging\r\n&gt;&gt;&gt; logging.warning('You are warned')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">WARNING:root:You are warned<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; logging.info('Deal with it')\r\n&gt;&gt;&gt;<\/pre>\n<h3>Displaying Date\/Time For Python Logging<\/h3>\n<p><span style=\"font-weight: 400\">To enable the time of logging in Python, you can use the following piece of Python code-<\/span><br \/>\n<strong>logging.basicConfig(format=&#8217;%(asctime)s %(message)s&#8217;)<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; import logging\r\n&gt;&gt;&gt; logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)\r\n&gt;&gt;&gt; logging.info('Began to log')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">2018-08-21 16:09:28,100 Began to log<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; logging.warning('This is a warning'); logging.warning('Your code could run into issues')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">2018-08-21 16:10:07,071 This is a warning<br \/>\n2018-08-21 16:10:07,121 Your code could run into issues<\/div>\n<h4>1. Setting a Python Logging Format<\/h4>\n<p>Let&#8217;s see the Logging Formatter example in Python-<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; import logging\r\n&gt;&gt;&gt; logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG,datefmt='%m\/%d\/%Y %I:%M:%S %p')\r\n&gt;&gt;&gt; logging.warning('Does this work')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">08\/21\/2018 05:02:01 PM Does this work<\/div>\n<h3>Python Logging Functions<\/h3>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">logging.info() or logging.debug() for the detailed output of events that occur during normal operation of a program.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">warnings.warn() issues a warning for a runtime event if the issue is avoidable.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">logging.warning() issues a warning for a runtime event if we need to note the event, even when the client can do nothing about it.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">logging.error(), logging.exception(), or logging.critical() report the suppression of an error without raising an exception.<\/span><\/li>\n<\/ul>\n<h3>Logging Variable Data<\/h3>\n<p><span style=\"font-weight: 400\">Let\u2019s take a few more examples of Logging in Python before we can bid goodbye for the day. <\/span><\/p>\n<p><span style=\"font-weight: 400\">It is possible to use a format string to describe an event and then append variable data as arguments. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Let\u2019s take an example, shall we?<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; logging.warning('%s before %s','Service','self')<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">WARNING:root:Service before self<\/div>\n<p>So, this was all in the Python Logging Tutorial. Hope you like our explanation.<\/p>\n<h3>Python Interview Questions on Logging<\/h3>\n<p>1. What is Python Logging?<\/p>\n<p>2. How is logging used in Python?<\/p>\n<p>3. How do you create a logging level in Python?<\/p>\n<p>4. What is the importance of logging in Python?<\/p>\n<p>5. What are the Python logging best practices?<\/p>\n<h3>Conclusion<\/h3>\n<p><span style=\"font-weight: 400\">With this, we conclude our tutorial on Logging in Python. <\/span><\/p>\n<p><span style=\"font-weight: 400\">We saw the <\/span><i><span style=\"font-weight: 400\">logging<\/span><\/i><span style=\"font-weight: 400\"> module, levels of severity, how to log to a file, and how to display date\/time for Python Logging. <\/span><\/p>\n<p><span style=\"font-weight: 400\">We also learned how to log variable data and took a look at which function to call and when.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Python tutorial, we will discuss how to perform Python Logging. Moreover, we will use the Python logging module for this. Also, we will discuss debug, set level, and error in Python Logging.&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":26195,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[8376,8377,10339,10657,10658,10660,10661,10662,10663,10664],"class_list":["post-26163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-logging-in-python","tag-logging-practice-in-python","tag-python-3-logging","tag-python-logging-error","tag-python-logging-example","tag-python-logging-levels","tag-python-logging-module","tag-python-logging-set-level","tag-python-logging-to-console","tag-python-logging-to-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Logging Module - Explore Logging File &amp; Levels - DataFlair<\/title>\n<meta name=\"description\" content=\"Let&#039;s learn about the logging module in Python. Also, explore debug, set level, and error in Python Logging.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-logging\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Logging Module - Explore Logging File &amp; Levels - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s learn about the logging module in Python. Also, explore debug, set level, and error in Python Logging.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-logging\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-25T23:50:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-24T12:25:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Logging Module - Explore Logging File &amp; Levels - DataFlair","description":"Let's learn about the logging module in Python. Also, explore debug, set level, and error in Python Logging.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/python-logging\/","og_locale":"en_US","og_type":"article","og_title":"Python Logging Module - Explore Logging File &amp; Levels - DataFlair","og_description":"Let's learn about the logging module in Python. Also, explore debug, set level, and error in Python Logging.","og_url":"https:\/\/data-flair.training\/blogs\/python-logging\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-08-25T23:50:07+00:00","article_modified_time":"2026-04-24T12:25:55+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Logging Module &#8211; Explore Logging File &amp; Levels","datePublished":"2018-08-25T23:50:07+00:00","dateModified":"2026-04-24T12:25:55+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/"},"wordCount":688,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg","keywords":["Logging in Python","logging practice in Python","Python 3 logging","Python logging error","Python Logging example","Python Logging levels","Python Logging module","Python logging set level","Python logging to console","Python Logging to file"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-logging\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-logging\/","url":"https:\/\/data-flair.training\/blogs\/python-logging\/","name":"Python Logging Module - Explore Logging File &amp; Levels - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg","datePublished":"2018-08-25T23:50:07+00:00","dateModified":"2026-04-24T12:25:55+00:00","description":"Let's learn about the logging module in Python. Also, explore debug, set level, and error in Python Logging.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-logging\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Logging-Tutorial-01.jpg","width":1200,"height":628,"caption":"Python Logging Tutorial - Levels &amp; Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-logging\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python Logging Module &#8211; Explore Logging File &amp; Levels"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=26163"}],"version-history":[{"count":11,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26163\/revisions"}],"predecessor-version":[{"id":147874,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26163\/revisions\/147874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/26195"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=26163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=26163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=26163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}