{"id":6633,"date":"2018-05-10T19:43:09","date_gmt":"2018-05-10T19:43:09","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=6633"},"modified":"2020-07-02T10:58:10","modified_gmt":"2020-07-02T17:58:10","slug":"write-to-log","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/write-to-log\/","title":{"rendered":"Write to Log"},"content":{"rendered":"<p>Write to Log is a procedure which builds a complex string for logging. This is different\u00a0from logging from the Director, which is explained in the following post: <a href=\"\/support\/index.php\/logging\/\">Logging<\/a>. A sample for Write to Log is available here:\u00a0<strong><a href=\"\/support\/wp-content\/uploads\/2018\/05\/Write_To_Log.zip\">Write_To_Log<\/a><\/strong><\/p>\n<p>To implement Write to Log, right click the form and select Add Post-condition Procedure &gt; Write to Log. Use the N\/A system variable and select OK.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6634\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1.png\" alt=\"\" width=\"352\" height=\"200\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1.png 352w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1-300x170.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1-150x85.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1-250x142.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog1-317x180.png 317w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<p>Next, enter or select the data to log, set a priority and select OK.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6635\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2.png\" alt=\"\" width=\"337\" height=\"198\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2.png 337w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2-300x176.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2-150x88.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2-250x147.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2018\/04\/WriteLog2-306x180.png 306w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/a><\/p>\n<p><strong>Priority<\/strong><br \/>\nA message priority fence can filter what messages are displayed or written to the log file. The default log priority is 8.<br \/>\n0-3 &#8211; All informative messages<br \/>\n4-7 &#8211; Unused<br \/>\n8-11 &#8211; Status messages (i.e.: pages output, etc&#8230;) only<br \/>\n12-15 &#8211; Error and other high priority messages only<br \/>\nMinisoft recommends a log priority of 8. If the log priority is set below 8, it could adversely affect performance.<\/p>\n<h2>Sample<\/h2>\n<p>For a basic sample of conditionally\u00a0logging a string, please download the following project:\u00a0<strong><a href=\"\/support\/wp-content\/uploads\/2018\/05\/Write_To_Log.zip\">Write_To_Log<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write to Log is a procedure which builds a complex string for logging. This is different\u00a0from logging from the Director, which is explained in the following post: Logging. A sample for Write to Log is available here:\u00a0Write_To_Log To implement Write to Log, right click the form and select Add Post-condition Procedure &gt; Write to Log. [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[399,50],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/6633"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=6633"}],"version-history":[{"count":6,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/6633\/revisions"}],"predecessor-version":[{"id":8216,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/6633\/revisions\/8216"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=6633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=6633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=6633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}