|
||||||||||
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 java.lang.String |
LOGDBNAME
|
Constructor Summary | |
---|---|
RMSAppender(java.lang.String logfilename)
|
|
RMSAppender(java.lang.String logFileName,
int size)
|
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 |
LogContent |
getLogContent()
Get the whole log content for this appender |
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 |
setLogLevel(int newlevel)
Perform additional actions needed when setting a new level. |
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
Constructor Detail |
---|
public RMSAppender(java.lang.String logfilename)
public RMSAppender(java.lang.String logFileName, int size)
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 void setLogLevel(int newlevel)
setLogLevel
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()
public LogContent getLogContent() throws java.io.IOException
Appender
getLogContent
in interface Appender
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |