{"id":1346,"date":"2018-10-25T20:13:08","date_gmt":"2018-10-25T20:13:08","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1346"},"modified":"2018-10-26T02:39:46","modified_gmt":"2018-10-26T02:39:46","slug":"zzz-standard-settings-log","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/zzz-standard-settings-log\/","title":{"rendered":"standard.settings.log"},"content":{"rendered":"<p class='command-format'><code>getElement(id).settings.log()<\/code><\/p>\n<p>Will add lines to the results file reporting element-specific events. See each Element page to see what gets recorded, and which parameter you can pass to <code>log<\/code>.<\/p>\n<p>For <a href=\"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/298\/\" class=\"wikilink-published\">Canvas elements<\/a>, <a href=\"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/image-element\/\" class=\"wikilink-published\">Image elements<\/a> and <a href=\"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/text-element\/\" class=\"wikilink-published\">Text elements<\/a> the results lines will report the timestamp corresponding to when <code>print<\/code> was called (if it was called).<\/p>\n<p><strong>Example<\/strong><br \/>\n[js highlight=&#8221;6&#8243;]<br \/>\nnewButton(&#8220;go&#8221;, &#8220;Go!&#8221;)<br \/>\n    .print()<br \/>\n    .wait()<br \/>\n,<br \/>\nnewText(&#8220;sentence&#8221;, &#8220;Hello world!&#8221;)<br \/>\n    .settings.log()<br \/>\n    .print()<br \/>\n,<br \/>\nnewButton(&#8220;done&#8221;, &#8220;Done!&#8221;)<br \/>\n    .print()<br \/>\n    .wait()<br \/>\n[\/js]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"wiki_cats":[16,17,18,13,5,4,19,20,21,22,23,24,14,34,25,26,28,27,29,30,31,12],"wiki_tags":[],"class_list":["post-1346","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-audio-element","wiki_cats-button-element","wiki_cats-canvas-element","wiki_cats-command","wiki_cats-documentation","wiki_cats-element","wiki_cats-function-element","wiki_cats-html-element","wiki_cats-image-element","wiki_cats-key-element","wiki_cats-scale-element","wiki_cats-selector-element","wiki_cats-settings-command","wiki_cats-standard-elements","wiki_cats-text-element","wiki_cats-textinput-element","wiki_cats-timer-element","wiki_cats-tooltip-element","wiki_cats-var-element","wiki_cats-video-element","wiki_cats-voicerecorder-element","wiki_cats-youtube-element-element"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki"}],"about":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/types\/yada_wiki"}],"author":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/comments?post=1346"}],"version-history":[{"count":3,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1346\/revisions"}],"predecessor-version":[{"id":1453,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1346\/revisions\/1453"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1346"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1346"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}