public class MarsLog extends LogFormatter
Used for logging the game process in an easy readable way for the NetWars Player.
Writes into a text file in a formatted way with time stamp and logged string line.
Always appends a new line when updated.
toTXT| Constructor and Description |
|---|
MarsLog(java.lang.String addedName)
MarsLog
Defines a logger and sets its level to ALL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
update(java.lang.String line)
update
Appends a new line to the log with the committed string line
|
closeHandler, formatLogpublic MarsLog(java.lang.String addedName)
Defines a logger and sets its level to ALL.
Creates a FileHandler including a log text file, and adds it to the logger.
Calls a formatter method.
addedName - -committed name for separating this log from other possible parallel running games on the serverFileHandler,
Logger