|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.util.Logger
public class Logger
Logger.
Nested Class Summary | |
---|---|
static class |
Logger.LogLevel
The different log levels. |
Field Summary | |
---|---|
static Logger |
GLOBAL_LOGGER
|
Constructor Summary | |
---|---|
Logger()
|
Method Summary | |
---|---|
static Logger |
getGlobalLogger()
Return the shared global instance of the logger. |
void |
log(Logger.LogLevel level,
String ref,
Exception e)
The method that every class of the package should use to send exception messages to the user. |
void |
log(Logger.LogLevel level,
String ref,
String message,
Object... params)
The method that every class of the package should use to send messages to the user. |
void |
setLogLevel(Logger.LogLevel level)
Change the log level. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Logger GLOBAL_LOGGER
Constructor Detail |
---|
public Logger()
Method Detail |
---|
public void log(Logger.LogLevel level, String ref, Exception e)
level
- The log level of the message.ref
- The name of the class calling this method.e
- The exception to log.public void log(Logger.LogLevel level, String ref, String message, Object... params)
level
- The log level of the message.ref
- The name of the class calling this method.message
- The message to log (can be in printf format).params
- The parameter of the message if in printf format.public void setLogLevel(Logger.LogLevel level)
level
- The new log level.public static Logger getGlobalLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |