|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.AppLoggerWrapper
public class AppLoggerWrapper
To wrap the concrete logger implementation of Object API
Field Summary | |
---|---|
protected static java.lang.String |
_appID
|
protected LogConfig |
_logConfig
|
static long |
KEY
|
Constructor Summary | |
---|---|
protected |
AppLoggerWrapper()
|
Method Summary | |
---|---|
void |
debug(java.lang.String message)
Logs the message as debug information |
void |
error(java.lang.String message)
Logs the message as error information |
void |
eventOccurred(long guid,
int currentLevel,
int arg2,
java.lang.Object appID,
java.lang.Object arg4)
|
void |
fatal(java.lang.String message)
Logs the message as fatal information |
protected static java.lang.String |
getAppID()
|
static AppLoggerWrapper |
getInstance(java.lang.String appID)
Gets a instance of application log wrapper from the given appID |
void |
info(java.lang.String message)
Logs the message as information |
boolean |
isDebug()
Checks if a message of the debug level would actually be logged by this logger wrapper. |
boolean |
isError()
Checks if a message of the error level would actually be logged by this logger wrapper. |
boolean |
isFatal()
Checks if a message of the fatal level would actually be logged by this logger wrapper. |
boolean |
isInfo()
Checks if a message of the info level would actually be logged by this logger wrapper. |
boolean |
isWarn()
Checks if a message of the warning level would actually be logged by this logger wrapper. |
net.rim.device.api.collection.Collection |
loadLogs()
Returns all the application log entries that are related to the current device and application |
protected static void |
setAppID(java.lang.String appID)
|
protected void |
setLoggerLevel()
|
void |
warn(java.lang.String message)
Logs the message as warn information |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String _appID
protected LogConfig _logConfig
public static final long KEY
Constructor Detail |
---|
protected AppLoggerWrapper()
Method Detail |
---|
public static AppLoggerWrapper getInstance(java.lang.String appID)
appID
- The ID of application
public void debug(java.lang.String message)
message
- The debug information will be loggedpublic void info(java.lang.String message)
message
- The information will be loggedpublic void warn(java.lang.String message)
message
- The warn information will be loggedpublic void error(java.lang.String message)
message
- The error information will be loggedpublic void fatal(java.lang.String message)
message
- The fatal information will be loggedpublic net.rim.device.api.collection.Collection loadLogs()
public boolean isDebug()
public boolean isInfo()
public boolean isWarn()
public boolean isError()
public boolean isFatal()
protected void setLoggerLevel()
protected static java.lang.String getAppID()
protected static void setAppID(java.lang.String appID)
public void eventOccurred(long guid, int currentLevel, int arg2, java.lang.Object appID, java.lang.Object arg4)
eventOccurred
in interface net.rim.device.api.system.GlobalEventListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |