Android-LogViewer icon indicating copy to clipboard operation
Android-LogViewer copied to clipboard

在android上显示Log日志的交互式应用

有时候不想打开android studio ddms 或者 不想在后台(bugtags) 看数据记录 就可以在手机上简单快速的查看数据日志(以悬浮窗的形式) 以表格的形式展示 (表格的✎ 列可以拖拽和控制长宽) 原理是主应用程序通过service给另外一个悬浮窗应用LogViewer发数据数据以json格式展示和分享 这样依赖包只有17kb 也不需要申请悬浮窗权限 LogViewer可以随意定制样式

原理图

使用场景: 1:比如你下班已经关电脑了 2:有时你和其他后台人员交流时简单快速方便展示或让他人快速了解业务

使用方法 安装 LogViewer.apk 或者git clone下载后编译LogViewer工程

注意: ✎ 是可以拖拽 LogViewer.apk 下载地址 主下载地址 备用下载地址

发送消息的测试apk TestLogViewer.apk 下载地址 主下载地址 备用下载地址

在你的项目中用引用

 compile 'com.aiushtha:logViewer:1.1.2'
 
 allprojects {
    repositories {
        maven { url "https://raw.githubusercontent.com/Aiushtha/Android-LogViewer//master" }
    }
 }

如何给另外LogViewer发消息的代码

    MessageLogManager.send({ 
      it.tag=this.javaClass.simpleName
      it.url="http//baidu.com"
      it.level="1"
      it.content=User("lxz","30",1,"1989").asJsonFromat()
      it.subject="user info"
      it
    })

如果你很喜欢使用这个应用,可以发送建议到我的邮箱,或者在项目中留言 [email protected]

以下为软件界面的截图 主程序 logview 详情