MikkiCoding
MikkiPastel
  • Welcome!
  • 👩‍🏫👩‍💻 Introduction of Programming
    • การทำงานของคอมพิวเตอร์เบื้องต้น
    • การแปลภาษาของโปรแกรม
    • Flowchart
    • Preprocesser Directory
    • Basic Coding
  • 🐍Python for Beginner
    • แนะนำภาษา python
    • ติดตั้งโปรแกรม python ลงบน computer
    • การพิมพ์คำสั่งขั้นต้น
    • Data type และการประกาศตัวแปร
    • Comparison
    • Condition Statement
    • Loop Statement
    • การใช้ break, continue และ pass ใน statement
    • Function
    • Data structure
    • การทำงานร่วมกันกับไฟล์
    • Exception handling
    • Document และแหล่งเรียนรู้อื่นๆ
  • 🤖Discord Bot Hands-on
    • Introduction
    • Discord Bot & Example
    • Create Your First Discord Bot
      • Create Your Discord Server
      • Create Discord Bot Account
      • Bring Discord Bot to Server
    • Workshop
      • Create First Slash Command
      • Create Slash Command with Parameter
      • Return Embeds and Button
      • Webhook
    • Reference
  • 💁‍♀️Android Developer Trip
    • Android Logcat
  • 📑Content
    • Content Roadmap Rule
    • 2024
      • Content Roadmap Sprint 01/2024 (15 - 26 January)
      • Content Roadmap Sprint 02/2024 (29 January - 9 February)
    • 2023
      • Content Roadmap Sprint 01/2023 (21 May - 2 June)
      • Content Roadmap Sprint 02/2023 (5 - 16 June)
      • Content Roadmap Sprint 03/2023 (19 - 30 June)
      • Content Roadmap Sprint 04/2023 (3 - 14 July)
      • Content Roadmap Sprint 05/2023 (17 - 25 July)
      • Content Roadmap Sprint 06/2023 (31 July - 11 August)
      • Content Roadmap Sprint 07/2023 (14 - 25 August)
      • Content Roadmap Sprint 08/2023 (28 August - 8 September)
      • Content Roadmap Sprint 09/2023 (11 - 22 September)
      • Content Roadmap Sprint 10/2023 (25 September - 6 October)
      • Content Roadmap Sprint 11/2023 (9 - 20 October)
      • Content Roadmap Sprint 12/2023 (6 - 17 November)
      • Content Roadmap Sprint 13/2023 (20 November - 1 December)
      • Content Roadmap Sprint 14/2023 (6 - 22 December)
    • 2022
Powered by GitBook
On this page
Edit on GitHub
  1. Android Developer Trip

Android Logcat

Last updated 1 year ago

Logcat บน Android Stuio ถูกเปลี่ยนหน้าตาไปในเวอร์ชั่น Dolphin | 2021.3.1 ซึ่งสามารถสร้างได้หลาย ๆ logcat windows ด้วยกันเนอะ

ส่วนประกอบของ logcat คร่าว ๆ ก็จะมี date แสดงวันที่และเวลา, tag ว่ามันมาจากไหน, package ก็คือมาจากแอพไหนแหละ, log level, message

แล้วตรงช่อง filter เราสามารถใส่อะไรได้บ้าง ไปดูกัน

  • tag: ใส่ tag ที่เราต้องการ filter เช่น tag:System.out

  • package: เลือก package name ที่เราต้องการ เช่นดูแค่แอพตัวเองก็ package:mine

  • process: เลือก process name ที่เราต้องการ แต่ไม่ค่อยได้ใช้แหะ

  • message: message จาก log ที่เราต้องการ เช่น message:sendrequest

  • level: log level ที่เราอยากได้ โดยทั้งหมดจะมี Verbose (V, มี priority ตํ่าสุด), Debug (D), Info (I), Warning (W), Error (E), Fatal (F), Silent (S ,มี priority สูงสุด ซึ่งมันจะไม่พิมพ์อะไรออกมา) เช่นอยากดู error ก็ใส่ level:error

  • age: เราอยากได้ logcat ล่าสุดเมื่อกี่วินาที (s) หรือกี่นาที (m) หรือกี่ชั่วโมง (h) หรือกี่วัน (d) เช่นอยากได้ log เมื่อ 5 นาทีที่ผ่านมา ก็ใส่ age: 5m

💁‍♀️