{"id":788,"date":"2024-11-29T09:19:05","date_gmt":"2024-11-29T09:19:05","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=788"},"modified":"2024-11-29T09:19:05","modified_gmt":"2024-11-29T09:19:05","slug":"mwnci-syslog-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-syslog-function\/","title":{"rendered":"Mwnci syslog() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>syslog<strong>(<em>string<\/em>, <em>string<\/em>, <em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>syslog()<\/i> provides a simple interface to the system log service.<br \/>\nThe input contains:<br \/>\nA Severity Level : &#8220;ALERT&#8221;, &#8220;CRIT&#8221;, &#8220;DEBUG&#8221;, &#8220;EMERG&#8221;, &#8220;ERR&#8221;, &#8220;INFO&#8221;, &#8220;NOTICE&#8221;, &#8220;WARNING&#8221;<br \/>\nA message<br \/>\nA Tag (most likely an application name)<\/p>\n<h2>Example<\/h2>\n<pre>\r\nsyslog(\"CRIT\", \"Humgrummit failure calling floggle-toggle\", \"troutd\")\r\n<\/pre>\n<p>syslog or equivalent will contain the error<\/p>\n<pre>journalctl | grep troutbridge\r\nNov 10 08:40:40 troutbridge mwnci[6058]: CRIT troutd[6058]: 2064\/11\/10 08:40:40 Humgrummit failure calling floggle-toggle\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax syslog(string, string, string) Description The syslog() provides a simple interface to the system log service. The input contains: A Severity Level : &#8220;ALERT&#8221;, &#8220;CRIT&#8221;, &#8220;DEBUG&#8221;, &#8220;EMERG&#8221;, &#8220;ERR&#8221;, &#8220;INFO&#8221;, &#8220;NOTICE&#8221;, &#8220;WARNING&#8221; A message A Tag (most likely an application name) Example syslog(&#8220;CRIT&#8221;, &#8220;Humgrummit failure calling floggle-toggle&#8221;, &#8220;troutd&#8221;) syslog or equivalent will contain the error journalctl &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-syslog-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci syslog() Function&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-788","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":6,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/788\/revisions"}],"predecessor-version":[{"id":794,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/788\/revisions\/794"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}