8enet / Remotelogcatviewer
websocket实现的远程查看android logcat
Stars: ✭ 35
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Remotelogcatviewer
Imbygo
一个基于melody+gin+goredis+gorm的websocket聊天架构,利用redis实现支持分布式部署
Stars: ✭ 21 (-40%)
Mutual labels: websocket
Springmvc Project
开箱即用的SpringMVC项目,包含常规业务所需的框架功能整合,更多功能请关注 https://github.com/MartinDai/SpringBoot-Project
Stars: ✭ 33 (-5.71%)
Mutual labels: websocket
Treefrog Framework
TreeFrog Framework : High-speed C++ MVC Framework for Web Application
Stars: ✭ 885 (+2428.57%)
Mutual labels: websocket
Websocket Obs Java
A java library for the OBS-Studio websocket plugin by Palakis.
Stars: ✭ 28 (-20%)
Mutual labels: websocket
Web Msg Sender
Web message pusher written in PHP based on workerman.
Stars: ✭ 864 (+2368.57%)
Mutual labels: websocket
Sockjs Client
WebSocket emulation - Javascript client
Stars: ✭ 7,808 (+22208.57%)
Mutual labels: websocket
Slipstream
A slick websocket client for Phoenix channels
Stars: ✭ 33 (-5.71%)
Mutual labels: websocket
Netty Websocket Spring Boot Starter
🚀 lightweight high-performance WebSocket framework ( 轻量级、高性能的WebSocket框架)
Stars: ✭ 885 (+2428.57%)
Mutual labels: websocket
Citadelcore
Cross platform filtering HTTP/S proxy based on .NET Standard 2.0.
Stars: ✭ 28 (-20%)
Mutual labels: websocket
Angular Chat
(IM App)Chat App built using Angular and Socket.io
Stars: ✭ 12 (-65.71%)
Mutual labels: websocket
Vuex Socketio Plugin
Vuex plugin to integrate socket.io client
Stars: ✭ 34 (-2.86%)
Mutual labels: websocket
Clusterws
💥 Lightweight, fast and powerful framework for building scalable WebSocket applications in Node.js
Stars: ✭ 868 (+2380%)
Mutual labels: websocket
Hoppscotch
👽 Open source API development ecosystem https://hoppscotch.io
Stars: ✭ 34,569 (+98668.57%)
Mutual labels: websocket
Discord4j
Discord4J is a fast, powerful, unopinionated, reactive library to enable quick and easy development of Discord bots for Java, Kotlin, and other JVM languages using the official Discord Bot API.
Stars: ✭ 973 (+2680%)
Mutual labels: websocket
RemoteLogcatViewer
在浏览器上远程查看logcat日志。
用法
compile project(':remotelogcat')
//start
LogcatRunner.getInstance().config(LogcatRunner.LogConfig.builder().write2File(true)).start();
...
//stop
LogcatRunner.getInstance().stop();
然后在浏览器中打开index.html 输入对应局域网ip和端口ws://ip:port/logcat
即可(注:logcat别名可以修改)。
因为一些安全原因,chrome禁止了部分不安全的请求地址
ws
,可以允许加载不安全脚本
继续使用或者下载index.html
文件本地打开也可以。
如果不希望修改现有项目,可以新建一个其他的项目依赖本库,然后通过配置相同的 android:sharedUserId=""
和签名相同,
可以在新app运行时中读取所有sharedUserId相同的 log。
实现原理
原理非常简单,在内部使用Runtime.getRuntime().exec("logcat");
执行命令去获取logcat输出流,然后逐行读取后通过websocket输出要远端,为了尽可能节省性能,只会维护一个客户端输出。
注意只能输出自己包下的log日志,当然相同sharedUserId和签名的也可以,多进程情况下建议在常驻后台的Service中启动本监听。
作用
某些Android设备没有调试接口,比如电视或者各种盒子终端,没法连接usb调试当然也不能查看logcat日志了,这个项目是在浏览器上远程显示和保存logcat输出,帮助调试开发使用。
功能
目前可以完整的查看、过滤、保存logcat信息。
支持日志文件写入、下载。
后期会加入shell支持。
License
Apache License 2.0
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].