基于微信Mars:https://github.com/Tencent/mars.git
- 低内存、低CPU:性能优势大,不占内存CPU
- 功能丰富:与原生Log使用几乎一致,但增加了写入文件功能,同时自带加密
- 支持点击log跳转到源码位置
- 目前编译了armeabi-v7和arm64-v8a
compile 'com.joybar.xlog:library:1.0.7'
L.init(LogUtils.LOG_CACHE_PATH, LogUtils.LOG_PATH, LogUtils.logFileName(), LogUtils.PUB_KEY, LogUtils.CONSOLE_LOG_OPEN);
L.i(TAG, "writeLog_info: " + i);
L.d(TAG, "writeLog_debug: " + i);
L.w(TAG, "writeLog_warning: " + i);
L.e(TAG, "writeLog_error: " + i);
L.appenderClose();
-keep class com.tencent.mars.** {
public protected private *;
}
或者
-keep class com.tencent.mars.xlog.** { *; }
-keep class com.tencent.mars.comm.* { *; }
-keep class com.tencent.mars.app.* { *; }
-keep class com.tencent.mars.stn.* {*;}
Copyright 2018 MyJoybar
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.