{"id":191,"date":"2024-11-06T13:34:20","date_gmt":"2024-11-06T13:34:20","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=191"},"modified":"2024-11-06T13:34:20","modified_gmt":"2024-11-06T13:34:20","password":"","slug":"commands-log","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/commands-log\/","title":{"rendered":"Commands: \/log"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h_8637f22660\">Overview<\/h2>\n\n\n\n<p>The \/log command can be used to write a variable name and it&#8217;s value to the document, this can be helpful in testing<\/p>\n\n\n\n<p>The Input is a variable and the output will include the variable name and the variable content and will replace the command in the content window<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_49b3a15d05\">Examples<\/h2>\n\n\n\n<p>Example1: <em>Logs the name and value of the #topic variable<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/log [#topic]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/log [#variable]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/xN0VHLULDI4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/log command can be used to write a variable name and it&#8217;s value to the document, this can be helpful in testing The Input is a variable and the output will include the variable name and the variable content and will replace the command in the content window Examples Example1: Logs the name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-191","docs","type-docs","status-publish","hentry","doc_category-commands"],"aioseo_notices":[],"year_month":"2026-04","word_count":68,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"contentbot","author_nicename":"contentbot","author_url":"https:\/\/contentbot.ai\/documentation\/author\/contentbot\/"},"doc_category_info":[{"term_name":"Commands","term_url":"https:\/\/contentbot.ai\/documentation\/docs-category\/commands\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/191\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/191\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=191"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}