bug
陈力
2023-06-14 0fbbf8c20ece1586a119fd4accc962fe73b5b268
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.lotaai.canguiayw.logger;
 
import android.os.Environment;
 
import com.blankj.utilcode.util.LogUtils;
 
public class LoggerInit {
    public static void init(){
        LogUtils.Config mConfig = LogUtils.getConfig();
        String logPath = Environment.getExternalStorageDirectory().getAbsolutePath();
        logPath = logPath + "/ltNormalLogs";
        mConfig.setDir(logPath);
        mConfig.setLogSwitch(true);
        mConfig.setConsoleSwitch(true);
        mConfig.setLog2FileSwitch(true);
        mConfig.setSaveDays(7);
        mConfig.setFilePrefix("lotaai");
    }
}