public class LogObject extends Object
Constructor and Description |
---|
LogObject(int level,
String msg)
Create a new LogObject with information, that are stored in the
ConsoleLogger.
|
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Get the DateObject of the LogObject.
|
int |
getLevel()
Get the Level of the LogObject as an Integer.
|
String |
getMessage()
Get the message of the LogObject.
|
String |
toString(String format)
This converts the LogObject into a String.
|
public LogObject(int level, String msg)
public Date getDate()
public int getLevel()
public String getMessage()
public String toString(String format)
format
- the text, that should include the LogObject.
This text must be in the correct format to get a output, that makes
sense
e.g.: "At {date:EEE, MMM d, ''yy} you got the error {message} with
the level {level}"
output:"At Wed, Jul 4, '06 you got the error NullPointerExeption
with the level ERROR."