|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.logger.CyLogger
public class CyLogger
Constructor Summary | |
---|---|
protected |
CyLogger(String name)
The constructor to create a CyLogger. |
Method Summary | |
---|---|
void |
addLogHandler(CyLogHandler handler,
LogLevel level)
Add a new general log handler for all messages |
void |
addLogHandler(CyLogHandler handler,
String loggerName,
LogLevel level)
Add a new log handler for specific messages |
void |
debug(String message)
Log a debug message. |
void |
debug(String message,
Throwable exception)
Log a debug message. |
void |
error(String message)
Log an error message. |
void |
error(String message,
Throwable exception)
Log an error exception message. |
void |
fatal(String message)
Log a fatal error message. |
void |
fatal(String message,
Throwable exception)
Log a fatal exception message. |
static CyLogger |
getLogger()
Get the default ("cytoscape") logger |
static CyLogger |
getLogger(Class logClass)
Get a logger for the specified class |
static CyLogger |
getLogger(String name)
Get a logger with the specified name |
List<CyLogHandler> |
getLogHandlers(LogLevel level)
Returns the current list of log handlers for the specified minimum level. |
List<CyLogHandler> |
getLogHandlers(String loggerName,
LogLevel level)
Returns the current list of log handlers for the specified logger at the suggested minimum level. |
void |
info(String message)
Log an informational message. |
void |
info(String message,
Throwable exception)
Log an informational message. |
boolean |
isDebugging()
Get the debug status. |
void |
log(String message,
LogLevel level)
Log a message at the specified log level. |
void |
log(String message,
LogLevel level,
Throwable t)
Log a message at the specified log level. |
CyLogHandler |
removeLogHandler(CyLogHandler handler,
LogLevel level)
Remove a general log handler |
CyLogHandler |
removeLogHandler(CyLogHandler handler,
String loggerName,
LogLevel level)
Remove a log handler for specific messages |
void |
setDebug(boolean debug)
Set the debug status. |
static void |
setDebugging(boolean on)
|
void |
warn(String message)
Log a warning message. |
void |
warn(String message,
Throwable exception)
Log a warning message. |
void |
warning(String message)
Log a warning message. |
void |
warning(String message,
Throwable exception)
Log a warning message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CyLogger(String name)
Method Detail |
---|
public static CyLogger getLogger(String name)
name
- the name of the logger
public static CyLogger getLogger(Class logClass)
logClass
- the class this logger logs for
public static CyLogger getLogger()
public static void setDebugging(boolean on)
public void debug(String message)
message
- the message to be loggedpublic void debug(String message, Throwable exception)
message
- the message to be loggedexception
- the exception to be loggedpublic void info(String message)
message
- the message to be loggedpublic void info(String message, Throwable exception)
message
- the message to be loggedexception
- the exception to be loggedpublic void warn(String message)
message
- the message to be loggedpublic void warn(String message, Throwable exception)
message
- the message to be loggedexception
- the exception to be loggedpublic void warning(String message)
message
- the message to be loggedpublic void warning(String message, Throwable exception)
message
- the message to be loggedexception
- the exception to be loggedpublic void error(String message)
message
- the message to be loggedpublic void error(String message, Throwable exception)
message
- the message to be printedexception
- the exception to be loggedpublic void fatal(String message)
message
- the message to be loggedpublic void fatal(String message, Throwable exception)
message
- the message to be printedexception
- the exception to be loggedpublic void setDebug(boolean debug)
debug
- boolean setting for debugging state.public boolean isDebugging()
public void log(String message, LogLevel level, Throwable t)
message
- the message to be loggedlevel
- the LogLevel to log the message att
- a throwable to use to get a stack tracepublic void log(String message, LogLevel level)
message
- the message to be loggedlevel
- the LogLevel to log the message atpublic void addLogHandler(CyLogHandler handler, String loggerName, LogLevel level)
handler
- the CyLogHandler that will handle the messagesloggerName
- a String that indicates which messages this handler handleslevel
- the minimum LogLevel this handler is interested inpublic void addLogHandler(CyLogHandler handler, LogLevel level)
handler
- the CyLogHandler that will handle the messageslevel
- the minimum LogLevel this handler is interested inpublic List<CyLogHandler> getLogHandlers(String loggerName, LogLevel level)
loggerName
- a String that indicates which messages the handlers handlelevel
- the minimum LogLevel the handlers are interested in
public List<CyLogHandler> getLogHandlers(LogLevel level)
level
- the minimum LogLevel the handlers are interested in
public CyLogHandler removeLogHandler(CyLogHandler handler, String loggerName, LogLevel level)
handler
- the CyLogHandler to removeloggerName
- a String that indicates which messages this handler handleslevel
- the minimum LogLevel this handler is interested inpublic CyLogHandler removeLogHandler(CyLogHandler handler, LogLevel level)
handler
- the CyLogHandler to removelevel
- the minimum LogLevel this handler is interested in
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |