|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.basicfunctionality.Log
public class Log
Light-weighted logging utility.
Field Summary | |
---|---|
static int |
DEBUG
The Constant DEBUG. |
static int |
ERROR
The Constant ERROR. |
static int |
FATAL
The Constant FATAL. |
static int |
INFO
The Constant INFO. |
static int |
WARN
The Constant WARN. |
Method Summary | |
---|---|
static Log |
getInstance()
Gets the one instance of the log. |
int |
parseLogLevel(java.lang.String level)
Method to convert between textual and internal integer representation of log levels |
void |
writeToLog(java.lang.String s,
int level)
Write to log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int FATAL
Method Detail |
---|
public static Log getInstance()
public int parseLogLevel(java.lang.String level)
level
- The level (as string)
public void writeToLog(java.lang.String s, int level)
level
- the level for this log entrys
- the string to write to the log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |