public class OSSLogToFileUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
createNewFile(java.io.File logFile) |
void |
deleteLogFile() |
void |
deleteLogFileDir() |
static OSSLogToFileUtils |
getInstance() |
static long |
getLocalLogFileSize()
log size
|
static long |
getLogFileSize(java.io.File file)
file length
|
static void |
init(Context context,
ClientConfiguration cfg)
init
|
static void |
reset() |
void |
resetLogFile()
set log file
|
void |
setUseSdCard(boolean useSdCard) |
void |
write(java.lang.Object str) |
public static void init(Context context, ClientConfiguration cfg)
context
- public static OSSLogToFileUtils getInstance()
public static void reset()
public static long getLogFileSize(java.io.File file)
file
- 文件public static long getLocalLogFileSize()
public void setUseSdCard(boolean useSdCard)
public void resetLogFile()
public void deleteLogFile()
public void deleteLogFileDir()
public void createNewFile(java.io.File logFile)
public void write(java.lang.Object str)