public class TechnicalLog extends LogFormatter
Used for logging all technical processes and exceptions thrown by diverse methods.
Writes into a text file in a formatted way with time stamp and logged string line.
Always appends new line when updated.
toTXT| Modifier | Constructor and Description |
|---|---|
protected |
TechnicalLog()
TechnicalLog
Defines a logger and sets the its level to ALL.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
information(java.lang.String line)
information
Appends a new line to the log with the committed string line
Logging level set to INFO. |
static void |
problem(java.lang.String line,
java.lang.Exception e)
problem
Appends a new line to the log with the committed string line
Logging level set to SEVERE. |
static void |
warning(java.lang.String line)
warning
Appends a new line to the log with the committed string line
Logging level set to WARNING. |
closeHandler, formatLogprotected TechnicalLog()
Defines a logger and sets the its level to ALL.
Creates a FileHandler including a log text file, and adds it to the logger.
Calls a formatter method.
FileHandler,
Loggerpublic static void information(java.lang.String line)
Appends a new line to the log with the committed string line
Logging level set to INFO.
line - defines the update string for the logpublic static void warning(java.lang.String line)
Appends a new line to the log with the committed string line
Logging level set to WARNING.
line - defines the update string for the logpublic static void problem(java.lang.String line,
java.lang.Exception e)
Appends a new line to the log with the committed string line
Logging level set to SEVERE.
line - defines the update string for the log