LogcatViewer是一个Android屏幕窗口打印Log日志调试库
- 日志输出过滤
- 悬浮窗口拖动
- 日志输出清除
- 分享保存log日志文本
- log日志页面放大缩小
程序二维码扫一扫下载安装或者GooglePlay下载安装:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.weijiaxing:LogcatViewer:1.0.2'
}
<provider
android:name="com.weijiaxing.logviewer.LogcatFileProvider"
android:authorities="${applicationId}.logcat_fileprovider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/logcat_filepaths" />
</provider>
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Use this method
LogcatActivity.launch(MainActivity.this);
}
}
Copyright (C) weijiaxing, xinwainet Inc. Open source codes for study only.
Do not use for commercial purpose.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.