a
554325746@qq.com
2020-01-10 ce0902f1721b9de6c0a2e8b16cdb6be2c6bca2b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.basic.security.utils;
 
import java.io.File;
import java.io.IOException;
 
public class Config {
    public static File errorLog;
 
    public static void init() {
        errorLog = new File(FileUtils.getExternalFilesDir() + File.separator + "error.log");
        if (!errorLog.exists()) {
            try {
                errorLog.createNewFile();
            } catch (IOException e) {
                ExceptionUtil.printException(e);
            }
        }
    }
}