|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.util.RMSAppender
public class RMSAppender
Logger class for debugging porposes
Field Summary | |
---|---|
static int |
DEFAULTLOGFILESIZE
|
static int |
EXTENDED_SIZE
|
static java.lang.String |
LOGDBNAME
|
static int |
LOGSIZETOBEFREE
|
Constructor Summary | |
---|---|
RMSAppender(java.lang.String logfilename)
|
Method Summary | |
---|---|
void |
closeLogFile()
Closes DS-Log store and catch all possible exception |
void |
deleteLogFile()
Resets DS-Log store and catch all possible exception |
static int |
getDefaultLogFileSize()
Getter method for defaultLogFileSize |
static int |
getDefaultLogStoreSizeToBeFree()
Getter method for defaultLogFileSizeToBeFree |
static int |
getFirstRecord()
Getter method for firstRecord |
void |
initLogFile()
Mandatory method for all applications that means to use DS-Log store method (non jsr-75 compliant applications) |
void |
openLogFile()
Opens DS-Log store and catch all possible exception |
static void |
setDefaultLogFileSize(int newDefaultLogFileSize)
Setter method for defaultLogFileSize |
static void |
setDefaultLogStoreSizeToBeFree(int newDefaultLogStoreSizeToBeFree)
Setter method for defaultLogFileSize |
void |
writeLogMessage(java.lang.String level,
java.lang.String msg)
Logs a string to standard output and to the device's event logger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOGDBNAME
public static final int DEFAULTLOGFILESIZE
public static final int LOGSIZETOBEFREE
public static final int EXTENDED_SIZE
Constructor Detail |
---|
public RMSAppender(java.lang.String logfilename)
Method Detail |
---|
public void writeLogMessage(java.lang.String level, java.lang.String msg) throws DataAccessException
writeLogMessage
in interface Appender
msg
- the string to be logged
DataAccessException
public void openLogFile()
openLogFile
in interface Appender
public void closeLogFile()
closeLogFile
in interface Appender
public void deleteLogFile()
deleteLogFile
in interface Appender
public void initLogFile()
initLogFile
in interface Appender
public static void setDefaultLogFileSize(int newDefaultLogFileSize)
newDefaultLogFileSize
- is the new default log size in bytespublic static int getDefaultLogFileSize()
public static void setDefaultLogStoreSizeToBeFree(int newDefaultLogStoreSizeToBeFree)
newDefaultLogStoreSizeToBeFree
- is the new default log size to be freepublic static int getDefaultLogStoreSizeToBeFree()
public static int getFirstRecord()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |