|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectevaHelper.EvaLogger
public class EvaLogger
This class should be called inside the code of the application that is being evaluated This creates the output log file This is language specific. Depends on how it is called. As of the moment, we'll try using Android as an example. Reference: http://java.sun.com/developer/technicalArticles/xml/JavaTechandXML/ http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2.html
Field Summary | |
---|---|
static java.lang.String |
ANDROID_PLATFORM
|
static java.lang.String |
DESKTOP_PLATFORM
|
static java.lang.String |
evaLogExt
|
Constructor Summary | |
---|---|
EvaLogger()
|
Method Summary | |
---|---|
static void |
FTBDebug(java.lang.String msg)
My debug messages |
static void |
log(java.lang.String action)
Should be called by classes where we want to log information. |
static void |
log(java.lang.String componentName,
java.lang.String componentType,
java.lang.String action)
Should be called by classes where we want to log information. |
static void |
log(java.lang.String screen,
java.lang.String componentName,
java.lang.String componentType,
java.lang.String action)
Should be called by classes where we want to log information. |
static void |
p(java.lang.Object o)
Lazy printing |
static void |
pln(java.lang.Object o)
Lazy printing |
static void |
setBasicLogInfo(java.lang.String screen)
|
static void |
startNewLogFile(java.lang.String platform)
These are cases where we want to force the system to create a new log file instead of using the existing file This should be invoked before the logAndroid method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String ANDROID_PLATFORM
public static java.lang.String DESKTOP_PLATFORM
public static java.lang.String evaLogExt
Constructor Detail |
---|
public EvaLogger()
Method Detail |
---|
public static void startNewLogFile(java.lang.String platform) throws EvaLoggerException
EvaLoggerException
public static void log(java.lang.String screen, java.lang.String componentName, java.lang.String componentType, java.lang.String action) throws EvaLoggerException
screen
- screen namecomponentName
- name of the component, use the label if possible, so that it's easy to tracecomponentType
- type/class of the component (e.g. button, textfield)action
- what type of event occurred when using the component (e.g. click, type, etc)
EvaLoggerException
public static void log(java.lang.String componentName, java.lang.String componentType, java.lang.String action) throws EvaLoggerException
componentName
- name of the component, use the label if possible, so that it's easy to tracecomponentType
- type/class of the component (e.g. button, textfield)action
- what type of event occurred when using the component (e.g. click, type, etc)
EvaLoggerException
public static void log(java.lang.String action) throws EvaLoggerException
screen
- screen namecomponentName
- name of the component, use the label if possible, so that it's easy to tracecomponentType
- type/class of the component (e.g. button, textfield)action
- what type of event occurred when using the component (e.g. click, type, etc)
EvaLoggerException
public static void setBasicLogInfo(java.lang.String screen)
screen
- public static void FTBDebug(java.lang.String msg)
msg
- public static void p(java.lang.Object o)
o
- public static void pln(java.lang.Object o)
o
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |