All Projects → carlonluca → logcat-colorize

carlonluca / logcat-colorize

Licence: Apache-2.0 license
Command that takes adb logcat from stdin and produces formatted colorized to stdout, written in C++.

Programming Languages

C++
36643 projects - #6 most used programming language
shell
77523 projects
Dockerfile
14818 projects
Makefile
30231 projects
tcl
693 projects

Projects that are alternatives of or similar to logcat-colorize

logcatf
A Command line tool for format Android Logcat.
Stars: ✭ 17 (-19.05%)
Mutual labels:  adb, logcat
android-tether
Autostart Android USB tethering with udev + systemd + adb
Stars: ✭ 30 (+42.86%)
Mutual labels:  adb
adbscan
A @nim-lang utility for scanning IPs for unprotected ADB Android devices connected to the internet
Stars: ✭ 36 (+71.43%)
Mutual labels:  adb
python tk adb
安卓性能测试工具
Stars: ✭ 64 (+204.76%)
Mutual labels:  adb
Simple-ADB
ADB/Fastboot. With a GUI.
Stars: ✭ 29 (+38.1%)
Mutual labels:  adb
Latest-adb-fastboot-installer-for-windows
A Simple Android Driver installer tool for windows (Always installs the latest version). Sponsored by https://sendletter.org, the Cheapest way to Send Letters
Stars: ✭ 242 (+1052.38%)
Mutual labels:  adb
ghost
Ghost Framework is an Android post-exploitation framework that exploits the Android Debug Bridge to remotely access an Android device. Ghost Framework gives you the power and convenience of remote Android device administration.
Stars: ✭ 156 (+642.86%)
Mutual labels:  adb
FireTVRemote-Node
A web app that can control your Amazon FireTV (Stick). Just startup Node, fill in your device's IP address and use your web browser as a remote. (Enable ADB debugging)
Stars: ✭ 54 (+157.14%)
Mutual labels:  adb
JumpJump
微信小游戏 跳一跳 kotlin PC破解
Stars: ✭ 70 (+233.33%)
Mutual labels:  adb
Wristkey
A free and open-source offline authenticator app for Wear OS.
Stars: ✭ 65 (+209.52%)
Mutual labels:  adb
aixlog
Header-only C++ logging library
Stars: ✭ 95 (+352.38%)
Mutual labels:  logcat
adb-wifi-setting-manager
Control wifi connections on Android with adb
Stars: ✭ 31 (+47.62%)
Mutual labels:  adb
gilfoyle
A CLI to interactively remove useless apps from your Android device.
Stars: ✭ 23 (+9.52%)
Mutual labels:  adb
Logcat
这是一个Android 上 效率极高的 Log 工具,主要功能为控制不同级别的Log输出,Log信息保存到文件、打印行号、函数调用、Json解析、点击跳转、多标签Tag 支持无限长字符串打印,无Logcat4000字符限制等功能
Stars: ✭ 90 (+328.57%)
Mutual labels:  logcat
extensiveautomation-server
Extensive Automation server
Stars: ✭ 19 (-9.52%)
Mutual labels:  adb
ruzzle-solver
A python script that solves ruzzle boards
Stars: ✭ 46 (+119.05%)
Mutual labels:  adb
dora
🌟Dora is an open-source framework focused on usability and flexibility.It is widely used to collect crash information and print variable values.It is very powerful and useful to debug android program. It is customizable and extensible in the simpleton-like ways. Dora是一个专注于易用性和灵活性的开源框架,它被广泛用于收集崩溃信息和打印变量值,对调试Android程序非常强大和有用,傻瓜式的自定义和扩展。
Stars: ✭ 15 (-28.57%)
Mutual labels:  logcat
macaca-adb
Node.js wrapper for ADB.
Stars: ✭ 36 (+71.43%)
Mutual labels:  adb
device api-android
DeviceAPI-Android
Stars: ✭ 18 (-14.29%)
Mutual labels:  adb
alfred-adb-workflow
an alfred workflow that wraps the adb command to avoid the "more than one device/emulator" error.
Stars: ✭ 22 (+4.76%)
Mutual labels:  adb

logcat-colorize

A simple program that colorizes Android Debug Bridge (adb)'s logcat output on a terminal window.

Notes:

  • supports output formats: brief, tag, process, time or threadtime (see more about this in the official docs);
  • works on Linux and Mac OS;

image

Installation

Snap

You can install logcat-colorize from Snappy: https://snapcraft.io/logcat-colorize.

sudo snap install logcat-colorize

Macports

You can install logcat-colorize from macports: https://github.com/macports/macports-ports/blob/master/devel/logcat-colorize/Portfile

sudo port install logcat-colorize

AUR

For those running on arch, there is also a package here: https://aur.archlinux.org/packages/logcat-colorize/

sudo pamac install logcat-colorize

DIY (from sources)

This depends on:

  • libboost-regex
  • libboost-program-options

If you are on Debian/Ubuntu:

    $ sudo apt-get install -y build-essential libboost-regex-dev libboost-program-options-dev

If you are on Mac OS X (using macports with libs installed in /opt/local):

    $ sudo port install boost

Compile and install:

    # download (or clone) the source
    $ make
    $ sudo make install

Usage

    # Help and version info:
    $ logcat-colorize
    
    # Simplest usage:
    $ adb logcat | logcat-colorize
    
    # Using specific device, with time details, and filtering:
    $ adb -s emulator-5556 logcat -v time System.err:V *:S | logcat-colorize
    
    # Piping to grep for regex filtering (much better than adb filter):
    $ adb logcat -v time | logcat-colorize | egrep -i '(sensor|wifi)'

    # Save logcat output to file and read later with logcat colorize.
    $ adb logcat > /tmp/logcat.txt
    $ cat /tmp/logcat.txt | logcat-colorize
    
    # List available formats, then set a specific format for debug messages.
    # Set in your ~/.bash_profile to make it permanent.
    $ logcat-colorize --list-ansi
    $ export LOGCAT_COLORIZE_MSG_DEBUG="^[4;44;33m"
    $ adb logcat | logcat-colorize

Note: I had written this as a quick approach in bash, but turns out it is pretty slow, specially pulling logcat from new devices (really a lot). So I decided to go a bit lower level and re-wrote this in C++. For reference, if you want to see the bash version, check out tag 0.2.0 (3f1486234a).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].