|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.peerunit.util.PeerUnitLogger
public class PeerUnitLogger
The application log class. This class is used for log application runtime events. This class's objects are parameterized by the values of properties of application properties file.
| Constructor Summary | |
|---|---|
PeerUnitLogger(java.lang.String name)
In the constructor, either a existing logger corresponding to the argument is cover, or a new logger is created. |
|
| Method Summary | |
|---|---|
void |
createLogger(java.lang.String pattern)
This method set the logger parameters, a file handler with his, the level. |
void |
log(java.util.logging.Level level,
java.lang.String msg)
Log a message at a given level. |
void |
logStackTrace(java.lang.Exception e)
Log a exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeerUnitLogger(java.lang.String name)
name - the name of the logger to find or to create| Method Detail |
|---|
public void createLogger(java.lang.String pattern)
pattern - the path of the file must containing logging messages
public void log(java.util.logging.Level level,
java.lang.String msg)
level - the level of loggingmsg - the message to logpublic void logStackTrace(java.lang.Exception e)
e - the exception to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||