More convenient and easy to use android Log manager
implementation 'com.apkfuns.logutils:library:1.7.5'
debugImplementation 'com.apkfuns.logutils:library:1.7.5'
releaseImplementation 'com.apkfuns.logutils:logutils-no-op:1.7.5'
implementation 'com.apkfuns.log2file:log2file:1.3.1'
// 设置日志写文件引擎
LogUtils.getLog2FileConfig().configLogFileEngine(new LogFileEngineFactory(context));
别忘了添加写文件权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
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.