• Home
  • Merchants
  • Developers
  • Partners
  • Contact
  • Home
  • Merchants
  • Developers
  • Partners
  • Contact

HOME / Capturing Android Logs with Logcat

  • Evertec Unified API Developer Guide
  • QuickSale TapToPhone User Guide
  • Release Notes – QuickSale App
  • Valid Transaction Responses and Codes
  • QuickSale Q3 PinPAD User Guide
  • Partner Portal Processor Configuration Specification
  • Evertec Unified API Integration Specification
  • Evertec Unified API Developer Guide
  • QuickSale 1.0 App User Guide
  • QuickSale 2.0 App User Guide
  • QS-Products App User Guide
  • Text To Pay User Guide
  • Payment Form Guide
  • Virtual Terminal User Guide
  • Batch Transactions for Merchants Guide
  • Auth Only Database User Guide and Specifications
  • Device Setup Guide for QuickSale 2.0
  • Capturing Android Logs with Logcat
  • PaymentModule iOS SDK Developer Guide
  • How to Set Up and Enable TOTP within Transaction Manager for Merchants
  • How to Set Up and Enable TOTP within Transaction Manager for Channel Partners
  • Batch Processing Specifications for Merchants
  • Customer Import Specifications
  • ComsGate® Payment Form Quick Start Guide
  • Charge Anywhere RMA and Repair Procedures
  • How to maintain battery in terminal
  • QuickSale POS Retail Application User Guide
  • QuickSale POS QSR Application User Guide
  • Recurring and Installment Import Specifications
  • How to Install a Wi-Fi Repeater
  • Gift Card Service Ordering for Merchants
  • Payment Form Specifications
  • How to Retrieve Merchant ID, Terminal ID, and Identification
  • How to Retrieve Merchant ID, Terminal ID, and Secret
  • How to Retrieve Client Key and Client Secret
  • QuickSale-Tab Videos
  • Semi-Integration Application User Guide
  • How to Manually Clear Data and Cache on a QuickSale Device for Channel Partners

Capturing Android Logs with Logcat

303 views 4

Introduction

Capturing Android logs is a critical step for diagnosing and troubleshooting issues in mobile applications. These logs provide valuable insights into application behavior, system processes, and errors. This guide outlines the step-by-step process for enabling developer options, setting up USB debugging, and using Android Debug Bridge (ADB) to capture logs. By following this guide, you can efficiently generate the logs required for debugging and share them with the development team.

Steps to Capture Android Logs with Logcat

Step 1: Enable Developer Options

  1. On your Android phone, navigate to Settings and scroll down to About Phone.
  2. Locate the Build Number field.
  3. Tap the Build Number field seven times. You will see a message: You are now a developer!
  4. Return to the main Settings menu and select Developer Options (now visible).

Step 2: Enable USB Debugging

  1. In Developer Options, locate the USB Debugging setting.
  2. Toggle the USB Debugging option to enable it.
  3. Confirm any pop-up prompts to allow USB debugging.

Step 3: Install Android Debug Bridge (ADB) on Your PC

  1. Download the Android Debug Bridge (ADB) tools from this link: Platform Tools Download
  2. Extract the ZIP file to a convenient location, such as *C:* or your desktop.
  3. Open the extracted folder named Platform Tools.
  4. Click on the address bar in the folder and type cmd to open a command prompt at that location.

Step 4: Connect the Device to ADB

  1. Connect your Android device to the PC using a USB cable.
  2. In the command prompt, type the following command:adb devices
    • This checks if the device is connected.
    • If prompted on the phone, allow the USB debugging connection.
    • The command output should display the device under List of devices attached.

Step 5: Start Capturing Logs

  1. To begin log capture, enter the following command in the command prompt:adb logcat > logcat.txt
    • This command starts recording logs and saves them to a file named logcat.txt in the Platform Tools folder.
  2. On your Android phone:
    • Open the Quicksale App.
    • Navigate to Settings > Support > About.

Step 6: Stop Capturing Logs

  1. To stop the log capture, return to the command prompt and press Ctrl + C.
  2. The log capture will stop, and the file logcat.txt will be finalized.

Step 7: Retrieve the Log File

  1. Open the Platform Tools folder on your PC.
  2. Locate the file named logcat.txt.
  3. Share this file with the development team for analysis.

Conclusion

By following these steps, you can efficiently capture and share Android logs using ADB. These logs will help the development team identify and resolve any application issues effectively. If you encounter any difficulties, ensure that all prerequisites are met and repeat the steps carefully.

Subscribe to Documentation Updates

Receive a monthly summary of new and updated technical documents.

Was this helpful?

4 Yes  2 No
Previously
Device Setup Guide for QuickSale 2.0
Up Next
PaymentModule iOS SDK Developer Guide

This website and content contains confidential, trade secret information, which is proprietary to Charge Anywhere, LLC, and its subsidiaries (collectively “Charge Anywhere®”) and is provided solely for the recipient's use in connection with the recipient’s participation in one of the Charge Anywhere’s Payment Gateway Programs. Charge Anywhere reserves the right to make changes to the specifications at any time and without notice. The information furnished by Charge Anywhere in this publication is believed to be accurate and reliable as of the date of its release; however, no responsibility is assumed by Charge Anywhere for its use, nor for infringements of patents or other rights of third parties resulting from its use, nor for the violation, misinterpretation, or misapplication of any laws, or any regulation of any credit card association including Visa USA, Visa International, or MasterCard International. No general license is granted under any patents, copyrights, or other intellectual property rights owned by Charge Anywhere and the recipient is only granted an end user license to use this information for the purpose of participating in one of Charge Anywhere’s Payment Gateway Programs, pursuant to an agreement with Charge Anywhere or one of its authorized Program partners. All modifications or improvements to any of the information and specifications in this document shall belong exclusively to Charge Anywhere, LLC. No unauthorized copying, disclosure, or use of this document is permitted without the express written consent of the Charge Anywhere, LLC.

  • Privacy Policy
  • Terms of Use
  • Copyright 2024 Charge Anywhere. All Rights Reserved

×