com.sybase.uep.bobclient.data
Class LogConfig

java.lang.Object
  extended by com.sybase.uep.bobclient.data.LogConfig
All Implemented Interfaces:
net.rim.device.api.util.Persistable

public class LogConfig
extends java.lang.Object
implements net.rim.device.api.util.Persistable

The class is used to maintain the log level setting and corresponding constants of log level

Author:
luox

Field Summary
static int DEBUG
          The constant to identify the debug level
static java.lang.String DefaultReplayPendingValue
          The constant to identify the status which is not the deleted and submitted log records
static int ERROR
          The constant to identify the debug level
static int FATAL
          The constant to identify the FATAL level
static int INFO
          The constant to identify the INFO level
static long KEY
           
static int OFF
          The constant to identify the OFF level
static java.lang.String ReplayPending
          The constant to indicate the attribute of replay pending in ObjAPI
static int WARN
          The constant to identify the WARN level
 
Method Summary
 int getCurrentLevel()
          Gets the setting of current log level
static LogConfig getInstance(java.lang.String appID)
          Gets a instance of logConfig
 void setCurrentLevel(int currentLevel)
          Sets the current log level for application
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final int DEBUG
The constant to identify the debug level

See Also:
Constant Field Values

INFO

public static final int INFO
The constant to identify the INFO level

See Also:
Constant Field Values

WARN

public static final int WARN
The constant to identify the WARN level

See Also:
Constant Field Values

ERROR

public static final int ERROR
The constant to identify the debug level

See Also:
Constant Field Values

FATAL

public static final int FATAL
The constant to identify the FATAL level

See Also:
Constant Field Values

OFF

public static final int OFF
The constant to identify the OFF level

See Also:
Constant Field Values

ReplayPending

public static java.lang.String ReplayPending
The constant to indicate the attribute of replay pending in ObjAPI


DefaultReplayPendingValue

public static java.lang.String DefaultReplayPendingValue
The constant to identify the status which is not the deleted and submitted log records


KEY

public static final long KEY
See Also:
Constant Field Values
Method Detail

getInstance

public static LogConfig getInstance(java.lang.String appID)
Gets a instance of logConfig

Parameters:
appID - The application id
Returns:

getCurrentLevel

public int getCurrentLevel()
Gets the setting of current log level

Returns:
The current log level

setCurrentLevel

public void setCurrentLevel(int currentLevel)
Sets the current log level for application

Parameters:
currentLevel - The log level will be set