logging.js contains various methods to enable logging for JavaSciprt.
Field Summary | |
static int |
LOGGING_DEBUG
The highest level of logging (all messages will pass through the filter) |
static int |
LOGGING_ERROR
Fourth highest logging level Filters: DEBUG, INFO, WARN |
static int |
LOGGING_FATAL
Lowest logging level Filters: DEBUG, INFO, WARN, ERROR |
static int |
LOGGING_INFO
Second highest logging level Filters: DEBUG |
static int |
LOGGING_WARN
Third highest logging level Filters: DEBUG, INFO |
Method Summary | |
int |
getLoggingLevel()
Obtains the current level at which logging is taking place |
boolean |
log(int level,
java.lang.String message)
Attempts to log a message of severity level. |
boolean |
setLoggingLevel(int level)
Sets the level at which logging messages will be passed on to the logging infrastructure |
Field Detail |
public static final int LOGGING_DEBUG
public static final int LOGGING_INFO
public static final int LOGGING_WARN
public static final int LOGGING_ERROR
public static final int LOGGING_FATAL
Method Detail |
public boolean setLoggingLevel(int level)
level
- The highest level of logging that should pass by the logging filter.LOGGING_DEBUG
,
LOGGING_INFO
,
LOGGING_WARN
,
LOGGING_ERROR
,
LOGGING_FATAL
Host Application | com.ibm.retail.saf.wata.host.logging.LoggingAgentManager |
Host Applet | LoggingApplet |
Flow | The logging level is stored in the applet and is not persistent between power cycles |
public int getLoggingLevel()
LOGGING_DEBUG
,
LOGGING_INFO
,
LOGGING_WARN
,
LOGGING_ERROR
,
LOGGING_FATAL
Host Application | com.ibm.retail.saf.wata.host.logging.LoggingAgentManager |
Host Applet | LoggingApplet |
Flow | The logging level is stored in the applet and is not persistent between power cycles |
public boolean log(int level, java.lang.String message)
level
- The severity of the log messagemessage
- The message to be logged
LOGGING_DEBUG
,
LOGGING_INFO
,
LOGGING_WARN
,
LOGGING_ERROR
,
LOGGING_FATAL
,
setLoggingLevel(int)
Host Application | com.ibm.retail.saf.wata.host.logging.LoggingAgentManager |
Host Applet | LoggingApplet |
Flow | Log messages are filtered and then logged using log4j. |