org.placelab.midp
Class EventLogger

java.lang.Object
  extended byorg.placelab.midp.EventLogger

public class EventLogger
extends java.lang.Object

Event logging helper class. In particular, use EventLogger.logError(String s) to log errors in your midlets for debugging


Field Summary
static EventLogger actInst
           
static int JAVA_ERROR
           
static java.lang.String STORE_NAME
           
 
Constructor Summary
protected EventLogger()
           
 
Method Summary
static void add(int eventType, java.lang.String message)
           
static void deleteAll()
           
static void deleteType(int type)
           
static java.lang.Object getEventType(java.lang.Object key)
           
static int getNumEventTypes()
           
static javax.microedition.rms.RecordEnumeration getRecords(javax.microedition.rms.RecordFilter rf, javax.microedition.rms.RecordComparator rc, boolean bool)
           
static void logError(java.lang.Exception ex)
           
static void logError(java.lang.String s)
           
static int numRecords()
           
static void setEventString(int eventNumber, java.lang.String eventString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_ERROR

public static int JAVA_ERROR

STORE_NAME

public static java.lang.String STORE_NAME

actInst

public static EventLogger actInst
Constructor Detail

EventLogger

protected EventLogger()
               throws javax.microedition.rms.RecordStoreException
Method Detail

getRecords

public static javax.microedition.rms.RecordEnumeration getRecords(javax.microedition.rms.RecordFilter rf,
                                                                  javax.microedition.rms.RecordComparator rc,
                                                                  boolean bool)
                                                           throws javax.microedition.rms.RecordStoreException
Throws:
javax.microedition.rms.RecordStoreException

setEventString

public static void setEventString(int eventNumber,
                                  java.lang.String eventString)

add

public static void add(int eventType,
                       java.lang.String message)

logError

public static void logError(java.lang.Exception ex)

logError

public static void logError(java.lang.String s)

deleteAll

public static void deleteAll()
                      throws javax.microedition.rms.RecordStoreException
Throws:
javax.microedition.rms.RecordStoreException

deleteType

public static void deleteType(int type)
                       throws javax.microedition.rms.RecordStoreException
Throws:
javax.microedition.rms.RecordStoreException

getNumEventTypes

public static int getNumEventTypes()

getEventType

public static java.lang.Object getEventType(java.lang.Object key)

numRecords

public static int numRecords()