{"id":272,"date":"2023-03-27T17:05:39","date_gmt":"2023-03-27T09:05:39","guid":{"rendered":"https:\/\/doc.orionstar.com\/en\/?post_type=lsvr_faq&#038;p=272"},"modified":"2023-03-27T17:18:43","modified_gmt":"2023-03-27T09:18:43","slug":"how-to-get-machine-logs","status":"publish","type":"lsvr_faq","link":"https:\/\/doc.orionstar.com\/en\/faq\/how-to-get-machine-logs\/","title":{"rendered":"How to get machine logs"},"content":{"rendered":"\n<p>Use adb command to fetch files from the robot. It will be used when we want to fetch the machine log.<\/p>\n\n\n\n<h3 id=\"code-faq-basic-code-faq-get-all-the-logs-of-the-robot\">Get all the logs of the robot\uff1a<a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/faq\/faq\/#code-faq-basic-code-faq-get-all-the-logs-of-the-robot\"><\/a><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">adb pull \/sdcard\/logs\/offlineLogs\/821\/<\/pre>\n\n\n\n<h3 id=\"code-faq-basic-code-faq-get-the-log-of-the-robot-at-the-specified-time\">Get the log of the robot at the specified time.<a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/faq\/faq\/#code-faq-basic-code-faq-get-the-log-of-the-robot-at-the-specified-time\"><\/a><\/h3>\n\n\n\n<ol start=\"1\">\n<li>Use this command to view all saved logs on the robot. And order them by time<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">adb shellcd \/sdcard\/logs\/offlineLogs\/821\/ls -l<\/pre>\n\n\n\n<ol start=\"2\">\n<li>Then use adb pull to take out the logs that require a period of time. The logs time is before the file name time.<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">adb pull \/sdcard\/logs\/offlineLogs\/821\/logcat.log-2020-05-22-11-00-07-062<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Use adb command to fetch files from the robot. It will be used when we want to fetch the machine log. Get all the logs of the robot\uff1a Get the log of the robot at the specified time.<\/p>\n","protected":false},"author":1,"template":"","meta":[],"lsvr_faq_cat":[10],"lsvr_faq_tag":[],"_links":{"self":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/272"}],"collection":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq"}],"about":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/types\/lsvr_faq"}],"author":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/272\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/272\/revisions\/274"}],"wp:attachment":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"lsvr_faq_cat","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq_cat?post=272"},{"taxonomy":"lsvr_faq_tag","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq_tag?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}