{"id":2990,"date":"2025-11-12T11:07:50","date_gmt":"2025-11-12T04:07:50","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=2990"},"modified":"2025-11-12T11:07:50","modified_gmt":"2025-11-12T04:07:50","slug":"log","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/ios\/library\/log\/","title":{"rendered":"Log"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"log\">Log<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"logevent\">LogEvent<\/h2>\n\n\n\n<p>\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e02\u0e2d\u0e07 Log<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>enum LogEvent: String {\n    case e = \"&#91;\u203c\ufe0f&#93;\" &lt;em>\/\/ error&lt;\/em>\n    case i = \"&#91;\u2139\ufe0f&#93;\" &lt;em>\/\/ info&lt;\/em>\n    case d = \"&#91;\ud83d\udcac&#93;\" &lt;em>\/\/ debug&lt;\/em>\n    case v = \"&#91;\ud83d\udd2c&#93;\" &lt;em>\/\/ verbose&lt;\/em>\n    case w = \"&#91;\u26a0\ufe0f&#93;\" &lt;em>\/\/ warning&lt;\/em>\n    case s = \"&#91;\ud83d\udd25&#93;\" &lt;em>\/\/ severe&lt;\/em>\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #0000FF\">enum<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">LogEvent<\/span><span style=\"color: #000000\">: String {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> e = <\/span><span style=\"color: #A31515\">&quot;&#91;\u203c\ufe0f&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ error&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> i = <\/span><span style=\"color: #A31515\">&quot;&#91;\u2139\ufe0f&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ info&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> d = <\/span><span style=\"color: #A31515\">&quot;&#91;\ud83d\udcac&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ debug&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> v = <\/span><span style=\"color: #A31515\">&quot;&#91;\ud83d\udd2c&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ verbose&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> w = <\/span><span style=\"color: #A31515\">&quot;&#91;\u26a0\ufe0f&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ warning&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0070C1\">case<\/span><span style=\"color: #000000\"> s = <\/span><span style=\"color: #A31515\">&quot;&#91;\ud83d\udd25&#93;&quot;<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #001080\">em<\/span><span style=\"color: #000000\">&gt;<\/span><span style=\"color: #008000\">\/\/ severe&lt;\/em&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example\">Example<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Log.e(\"Error message.\")\nLog.i(\"Info message.\")\nLog.d(\"Debug message.\")\nLog.v(\"Verbose message.\")\nLog.w(\"Warning message.\")\nLog.s(\"Severe message.\")<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">e<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Error message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">i<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Info message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">d<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Debug message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">v<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Verbose message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">w<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Warning message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #001080\">Log<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">s<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Severe message.&quot;<\/span><span style=\"color: #000000\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Log \u0e08\u0e30\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e25\u0e07\u0e43\u0e19 Local Database \u0e41\u0e25\u0e30\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e25\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e15\u0e32\u0e21\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48 \u0e41\u0e25\u0e30\u0e1a\u0e2d\u0e01 Path \u0e02\u0e2d\u0e07 Log File \u0e14\u0e31\u0e07\u0e20\u0e32\u0e1e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"path-\u0e02\u0e2d\u0e07-log-file\">Path \u0e02\u0e2d\u0e07 Log File<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/portal-atlasx.cdg.co.th\/share\/Portal%20Docs\/Framework\/AXiOS\/log-path.png\" alt=\"Log File Path\" title=\"null\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"log-file\">Log File<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/portal-atlasx.cdg.co.th\/share\/Portal%20Docs\/Framework\/AXiOS\/log-file.png\" alt=\"Log File\" title=\"null\"\/><\/figure>\n","protected":false},"featured_media":0,"parent":2981,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-2990","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=2990"}],"version-history":[{"count":1,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2990\/revisions"}],"predecessor-version":[{"id":2991,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2990\/revisions\/2991"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2981"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=2990"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=2990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}