{"id":29750387,"url":"https://github.com/hansalemaos/logcatdevices","last_synced_at":"2026-05-16T22:06:01.233Z","repository":{"id":196737895,"uuid":"697098644","full_name":"hansalemaos/logcatdevices","owner":"hansalemaos","description":"Multiple ADB logcat with colored output / csv export","archived":false,"fork":false,"pushed_at":"2023-09-27T03:50:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T10:54:58.846Z","etag":null,"topics":["adb","bluestacks","colored","coloured","csv","devices","export","logcat","multiple","output","pandas"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/logcatdevices/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-27T03:49:42.000Z","updated_at":"2023-09-27T03:51:05.000Z","dependencies_parsed_at":"2023-09-27T07:20:28.869Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/logcatdevices","commit_stats":null,"previous_names":["hansalemaos/logcatdevices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/logcatdevices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Flogcatdevices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Flogcatdevices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Flogcatdevices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Flogcatdevices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/logcatdevices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Flogcatdevices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","bluestacks","colored","coloured","csv","devices","export","logcat","multiple","output","pandas"],"created_at":"2025-07-26T13:16:15.267Z","updated_at":"2026-05-16T22:06:01.228Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiple ADB logcat with colored output / csv export \r\n\r\n## Tested against Windows 10 / Python 3.11 / Anaconda\r\n\r\n## pip install logcatdevices\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/logcatoutput.png?raw=true)\r\n\r\n\r\n\r\n## start_logcat (ctrl+c to stop)\r\n\r\n```python\r\nStarts logging Android device logs using ADB.\r\n\r\nThis function initiates log capturing for specified Android devices using ADB (Android Debug Bridge).\r\nLogs are saved to a CSV file for further analysis.\r\n\r\nArgs:\r\n\tadb_path (str): Path to the ADB executable.\r\n\tcsv_output (str): Path to the CSV file where the logs will be saved.\r\n\tdevice_serials (str or list): A single device serial number as a string, or a list of serial numbers\r\n\t\t\t\t\t\t\t\t  for multiple devices. Serial numbers are used to identify connected devices.\r\n\tprint_stdout (bool, optional): If True, prints log messages to the console. Default is True.\r\n\tclear_log (bool, optional): If True, clears the device log before capturing. Default is True.\r\n\tljustserial (int, optional): Left-justifies the device serial number in the printed output. Default is 16.\r\n\r\nReturns:\r\n\tNone\r\n\r\nExample:\r\n\tfrom logcatdevices import start_logcat\r\n\r\n\tandroidcsv = \"c:\\\\csvandroisad.csv\"\r\n\t_ = start_logcat(\r\n\t\tadb_path=r\"C:\\Android\\android-sdk\\platform-tools\\adb.exe\",\r\n\t\tcsv_output=androidcsv,\r\n\t\tdevice_serials=[\r\n\t\t\t\"127.0.0.1:5565\",\r\n\t\t\t\"127.0.0.1:7555\",\r\n\t\t\t\"127.0.0.1:7556\",\r\n\t\t\t\"emulator-5554\",\r\n\t\t\t\"emulator-5564\",\r\n\t\t],\r\n\t\tprint_stdout=True,\r\n\t\tclear_log=True,\r\n\t\tljustserial=16,\r\n\t)\r\n```\r\n\r\n\r\n## csv2df\r\n\r\n\r\n```python\r\nConverts a CSV log file to a pandas DataFrame.\r\n\r\nThis function reads a CSV file containing Android device log data and converts it into a structured\r\npandas DataFrame, enabling easy data manipulation and analysis.\r\n\r\nArgs:\r\n\tcsvfile (str): Path to the CSV log file.\r\n\r\nReturns:\r\n\tpandas.DataFrame: A DataFrame containing log data with the following columns:\r\n\t\t- aa_source (str): Source of the log message.\r\n\t\t- aa_date (datetime): Date and time of the log message.\r\n\t\t- aa_processID (int): Process ID associated with the log message.\r\n\t\t- aa_threadID (int): Thread ID associated with the log message.\r\n\t\t- aa_logType (str): Type of log message (e.g., 'V', 'D', 'I', 'W', 'E').\r\n\t\t- aa_tag (str): Tag associated with the log message.\r\n\t\t- aa_message (str): Log message content.\r\n\r\nExample:\r\n\tfrom logcatdevices import csv2df\r\n\tandroidcsv = \"c:\\\\csvandroisad.csv\"\r\n\tdf = csv2df(androidcsv)\r\n\tprint(df.to_string())\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Flogcatdevices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Flogcatdevices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Flogcatdevices/lists"}