-
- All Implemented Interfaces:
public class LogUtils
-
-
Field Summary
Fields Modifier and Type Field Description private final Array<String>DEVICE_INFOprivate final StringMAX_DIR_SIZEprivate final LongDEFAULT_DIR_SIZEprivate FilecurrentSessionFileprivate FileWritercurrentSessionFileWriterpublic final static LogUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitcloseLogging()final StringstaticFileWriterStart(Context context, FrameworkInfo frameworkInfo)final FilesaveLogsToFile(Context context, String filename)final FilegetDirPath(Context context)final UnitcheckDirSizeAndRemove(Context context)final Array<String>getDEVICE_INFO()Information about the current build, taken from system properties. final StringgetMAX_DIR_SIZE()final LonggetDEFAULT_DIR_SIZE()final FilegetCurrentSessionFile()final UnitsetCurrentSessionFile(File currentSessionFile)final FileWritergetCurrentSessionFileWriter()final UnitsetCurrentSessionFileWriter(FileWriter currentSessionFileWriter)-
-
Method Detail
-
closeLogging
final Unit closeLogging()
-
staticFileWriterStart
final String staticFileWriterStart(Context context, FrameworkInfo frameworkInfo)
-
saveLogsToFile
final File saveLogsToFile(Context context, String filename)
-
getDirPath
final File getDirPath(Context context)
-
checkDirSizeAndRemove
final Unit checkDirSizeAndRemove(Context context)
-
getDEVICE_INFO
final Array<String> getDEVICE_INFO()
Information about the current build, taken from system properties.
-
getMAX_DIR_SIZE
final String getMAX_DIR_SIZE()
-
getDEFAULT_DIR_SIZE
final Long getDEFAULT_DIR_SIZE()
-
getCurrentSessionFile
final File getCurrentSessionFile()
-
setCurrentSessionFile
final Unit setCurrentSessionFile(File currentSessionFile)
-
getCurrentSessionFileWriter
final FileWriter getCurrentSessionFileWriter()
-
setCurrentSessionFileWriter
final Unit setCurrentSessionFileWriter(FileWriter currentSessionFileWriter)
-
-
-
-