|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.registry.rdfagent.util.Log
public class Log
A logging class for the agent.
| Field Summary | |
|---|---|
static Level |
ALL
log all messages |
static Level |
INFO
log only info messages |
static Level |
SEVERE
log severe messages |
static Level |
WARN
log warning messages |
| Constructor Summary | |
|---|---|
Log()
|
|
| Method Summary | |
|---|---|
static void |
exception(String cls,
String method,
Throwable t)
|
static void |
info(String msg)
|
static boolean |
isLoggable()
|
static void |
setEnabled(boolean enabled)
|
static void |
severe(String msg)
|
static void |
start(String logPath,
Level level,
boolean enable,
String msg)
|
static void |
stop(String msg)
A method to stop logging. |
static void |
warning(String msg)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Level ALL
public static final Level INFO
public static final Level WARN
public static final Level SEVERE
| Constructor Detail |
|---|
public Log()
| Method Detail |
|---|
public static void start(String logPath,
Level level,
boolean enable,
String msg)
logPath - the directory to place the log filelevel - the level of loggin that you would like have.msg - the message to log upon startingpublic static void stop(String msg)
msg - a message to outputpublic static void warning(String msg)
msg - the string that you would like to log as a warningpublic static void info(String msg)
msg - the string that you would like to log as infopublic static void severe(String msg)
msg - the string that you would like to log as severe
public static void exception(String cls,
String method,
Throwable t)
cls - the class where the exception occuredmethod - the method that caused the exceptiont - the throwable object to logpublic static boolean isLoggable()
public static void setEnabled(boolean enabled)
enabled - if true, then logging is set to enabled, otherwise it is not
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||