public class LogFormatter
extends java.lang.Object
Holds only a method for formatting a log
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.FileHandler |
toTXT
toTXT
defines the FileHandler object of the class for logging into a text file
|
| Constructor and Description |
|---|
LogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeHandler()
closeHandler
closes the file handler for the log
|
protected static void |
formatLog(java.util.logging.FileHandler handler,
boolean timeStamp)
formatLog
Sets the format of log text file in a specified way:
dd.MM.yyyy @ hh:mm:ss LogMessage
|
protected static java.util.logging.FileHandler toTXT
defines the FileHandler object of the class for logging into a text file
protected static void formatLog(java.util.logging.FileHandler handler,
boolean timeStamp)
Sets the format of log text file in a specified way:
handler - defines which handler should be formattedFileHandler,
SimpleDateFormatpublic static void closeHandler()
closes the file handler for the log