public class LogWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
logFolder
Log folder where the log files will be written
|
static java.lang.String |
prefix
Prefix of the log file
|
| Constructor and Description |
|---|
LogWriter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deleteLogDir()
Remove all file in the log directory
|
static void |
printDebug(java.lang.String message) |
static void |
writeDebugInfo(java.lang.String info)
Write a new debug information line in the file
|
static void |
writeDebugInfo(java.lang.String format,
java.lang.Object... args)
Write a new debug information line in the file
|
static void |
writeExceptionLog(java.lang.Throwable e)
Writes an exception to the same log as writeDebugInfo.
|
static void |
writeLogfile(java.lang.String info,
java.lang.String path)
Write new log information into a file
|
static void |
writeLogInfo(java.lang.String info,
java.lang.String filePath)
Write a new log information line in the file
|
public static java.lang.String logFolder
public static java.lang.String prefix
public static void writeLogInfo(java.lang.String info,
java.lang.String filePath)
info - Information to writefilePath - Path of the log filepublic static void printDebug(java.lang.String message)
public static void writeDebugInfo(java.lang.String info)
info - Information to writepublic static void writeDebugInfo(java.lang.String format,
java.lang.Object... args)
format - Format of information to write String.format(java.lang.String, java.lang.Object...)args - Arguments for the formatpublic static void writeExceptionLog(java.lang.Throwable e)
e - The exception to be loggedpublic static void writeLogfile(java.lang.String info,
java.lang.String path)
info - Information to writepath - Path of the filepublic static boolean deleteLogDir()