com.sybase.uep.bobclient.data
Class OptionAppLoggerWrapper

java.lang.Object
  extended by com.sybase.uep.bobclient.data.AppLoggerWrapper
      extended by com.sybase.uep.bobclient.data.OptionAppLoggerWrapper
All Implemented Interfaces:
net.rim.device.api.system.GlobalEventListener

public class OptionAppLoggerWrapper
extends AppLoggerWrapper

To handle the case which log the information in the setting screen or no corresponding application

Author:
luox

Field Summary
static int _optionLoggerLevel
           
 
Fields inherited from class com.sybase.uep.bobclient.data.AppLoggerWrapper
_appID, _logConfig
 
Constructor Summary
OptionAppLoggerWrapper(java.lang.String appID)
           
 
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 fatal(java.lang.String message)
          Logs the message as fatal information
 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.
protected  void setLoggerLevel()
           
 void warn(java.lang.String message)
          Logs the message as warn information
 
Methods inherited from class com.sybase.uep.bobclient.data.AppLoggerWrapper
eventOccurred, getAppID, getInstance, loadLogs, setAppID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_optionLoggerLevel

public static int _optionLoggerLevel
Constructor Detail

OptionAppLoggerWrapper

public OptionAppLoggerWrapper(java.lang.String appID)
Method Detail

debug

public void debug(java.lang.String message)
Description copied from class: AppLoggerWrapper
Logs the message as debug information

Overrides:
debug in class AppLoggerWrapper
Parameters:
message - The debug information will be logged

info

public void info(java.lang.String message)
Description copied from class: AppLoggerWrapper
Logs the message as information

Overrides:
info in class AppLoggerWrapper
Parameters:
message - The information will be logged

warn

public void warn(java.lang.String message)
Description copied from class: AppLoggerWrapper
Logs the message as warn information

Overrides:
warn in class AppLoggerWrapper
Parameters:
message - The warn information will be logged

error

public void error(java.lang.String message)
Description copied from class: AppLoggerWrapper
Logs the message as error information

Overrides:
error in class AppLoggerWrapper
Parameters:
message - The error information will be logged

fatal

public void fatal(java.lang.String message)
Description copied from class: AppLoggerWrapper
Logs the message as fatal information

Overrides:
fatal in class AppLoggerWrapper
Parameters:
message - The fatal information will be logged

isDebug

public boolean isDebug()
Checks if a message of the debug level would actually be logged by this logger wrapper.

Overrides:
isDebug in class AppLoggerWrapper
Returns:

isInfo

public boolean isInfo()
Checks if a message of the info level would actually be logged by this logger wrapper.

Overrides:
isInfo in class AppLoggerWrapper
Returns:

isWarn

public boolean isWarn()
Checks if a message of the warning level would actually be logged by this logger wrapper.

Overrides:
isWarn in class AppLoggerWrapper
Returns:

isError

public boolean isError()
Checks if a message of the error level would actually be logged by this logger wrapper.

Overrides:
isError in class AppLoggerWrapper
Returns:

isFatal

public boolean isFatal()
Checks if a message of the fatal level would actually be logged by this logger wrapper.

Overrides:
isFatal in class AppLoggerWrapper
Returns:

setLoggerLevel

protected void setLoggerLevel()
Overrides:
setLoggerLevel in class AppLoggerWrapper