|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.dtv.lwuit.util.Log
public class Log
Pluggable logging framework that allows a developer to initiate logging output.
Field Summary | |
---|---|
static int |
DEBUG
Constant indicating the logging level Debug is the default and the lowest level followed by info, warning and error. |
static int |
ERROR
Constant indicating the logging level Debug is the default and the lowest level followed by info, warning and error. |
static int |
INFO
Constant indicating the logging level Debug is the default and the lowest level followed by info, warning and error. |
static int |
WARNING
Constant indicating the logging level Debug is the default and the lowest level followed by info, warning and error. |
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static int |
getLevel()
Returns the logging level for printing log details, the lower the value the more verbose would the printouts be. |
static void |
install(Log newInstance)
Installs a log subclass that can replace the logging destination/behavior. |
static void |
p(String text)
Default println method invokes the print instance method, uses DEBUG level. |
static void |
p(String text,
int level)
Default println method invokes the print instance method, uses given level. |
protected void |
print(String text,
int level)
Default log implementation prints to the console and the file connector if applicable. |
static void |
setLevel(int level)
Sets the logging level for printing log details, the lower the value the more verbose would the printouts be. |
static void |
showLog()
Places a form with the log as a TextArea on the screen, this method can be attached to appear at a given time or using a fixed global key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEBUG
public static final int INFO
public static final int WARNING
public static final int ERROR
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void install(Log newInstance)
newInstance
- the new instance for the Log objectpublic static void p(String text)
text
- the text to printpublic static void p(String text, int level)
text
- the text to printlevel
- one of DEBUG, INFO, WARNING, ERRORpublic static void setLevel(int level)
level
- one of DEBUG, INFO, WARNING, ERRORgetLevel()
public static int getLevel()
setLevel(int)
public static void showLog()
protected void print(String text, int level)
text
- the text to printlevel
- one of DEBUG, INFO, WARNING, ERROR
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |