|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.util.Log
public class Log
Generic Log class
Field Summary | |
---|---|
static int |
DEBUG
Log level DEBUG: used to log debug messages. |
static int |
DISABLED
Log level DISABLED: used to speed up applications using logging features |
static int |
ERROR
Log level ERROR: used to log error messages. |
static int |
INFO
Log level INFO: used to log information messages. |
static java.util.Vector |
probes
Probes for performances tracking |
static int |
TRACE
Log level TRACE: used to trace the program execution. |
Method Summary | |
---|---|
static void |
addProbe(java.lang.String msg)
|
static void |
debug(java.lang.Object obj,
java.lang.String msg)
DEBUG: Information message |
static void |
debug(java.lang.String msg)
DEBUG: Debug message |
static void |
deleteLog()
Delete log file |
static void |
error(java.lang.Object obj,
java.lang.String msg)
ERROR: Error message |
static void |
error(java.lang.String msg)
ERROR: Error message |
static int |
getLogLevel()
Accessor method to retrieve log level: |
static void |
info(java.lang.Object obj,
java.lang.String msg)
INFO: Information message |
static void |
info(java.lang.String msg)
INFO: Information message |
static void |
initLog(Appender object)
Ititialize log file |
static void |
initLog(Appender object,
int level)
Initialize log file with a specific log level. |
static void |
setLogLevel(int newlevel)
Accessor method to define log level: |
static void |
trace(java.lang.Object obj,
java.lang.String msg)
TRACE: Information message |
static void |
trace(java.lang.String msg)
TRACE: Debugger mode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DISABLED
public static final int ERROR
public static final int INFO
public static final int DEBUG
public static final int TRACE
public static java.util.Vector probes
Method Detail |
---|
public static void initLog(Appender object, int level)
object
- the appender object that write log filelevel
- the log levelpublic static void initLog(Appender object)
object
- the appender object that write log filepublic static void deleteLog()
public static void setLogLevel(int newlevel)
newlevel
- log level to be setpublic static int getLogLevel()
public static void addProbe(java.lang.String msg)
public static void error(java.lang.String msg)
msg
- the message to be loggedpublic static void error(java.lang.Object obj, java.lang.String msg)
msg
- the message to be loggedobj
- the object that send error messagepublic static void info(java.lang.String msg)
msg
- the message to be loggedpublic static void info(java.lang.Object obj, java.lang.String msg)
msg
- the message to be loggedobj
- the object that send log messagepublic static void debug(java.lang.String msg)
msg
- the message to be loggedpublic static void debug(java.lang.Object obj, java.lang.String msg)
msg
- the message to be loggedobj
- the object that send log messagepublic static void trace(java.lang.String msg)
public static void trace(java.lang.Object obj, java.lang.String msg)
msg
- the message to be loggedobj
- the object that send log message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |