Interface logging


public interface logging

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

LOGGING_DEBUG

public static final int LOGGING_DEBUG
The highest level of logging (all messages will pass through the filter)

See Also:
Constant Field Values

LOGGING_INFO

public static final int LOGGING_INFO
Second highest logging level Filters: DEBUG

See Also:
Constant Field Values

LOGGING_WARN

public static final int LOGGING_WARN
Third highest logging level Filters: DEBUG, INFO

See Also:
Constant Field Values

LOGGING_ERROR

public static final int LOGGING_ERROR
Fourth highest logging level Filters: DEBUG, INFO, WARN

See Also:
Constant Field Values

LOGGING_FATAL

public static final int LOGGING_FATAL
Lowest logging level Filters: DEBUG, INFO, WARN, ERROR

See Also:
Constant Field Values
Method Detail

setLoggingLevel

public boolean setLoggingLevel(int level)
Sets the level at which logging messages will be passed on to the logging infrastructure

Parameters:
level - The highest level of logging that should pass by the logging filter.
See Also:
LOGGING_DEBUG, LOGGING_INFO, LOGGING_WARN, LOGGING_ERROR, LOGGING_FATAL
WATA Integration
Host Applicationcom.ibm.retail.saf.wata.host.logging.LoggingAgentManager
Host AppletLoggingApplet
FlowThe logging level is stored in the applet and is not persistent between power cycles

getLoggingLevel

public int getLoggingLevel()
Obtains the current level at which logging is taking place

Returns:
Returns the level at which logging messages are being passed on to the logging infrastructure. Returns -1 if the information cannot be obtained.
See Also:
LOGGING_DEBUG, LOGGING_INFO, LOGGING_WARN, LOGGING_ERROR, LOGGING_FATAL
WATA Integration
Host Applicationcom.ibm.retail.saf.wata.host.logging.LoggingAgentManager
Host AppletLoggingApplet
FlowThe logging level is stored in the applet and is not persistent between power cycles

log

public boolean log(int level,
                   java.lang.String message)
Attempts to log a message of severity level. If the level is higher than the current logging level, the call will be ignored.

Parameters:
level - The severity of the log message
message - The message to be logged
Returns:
Returns false if an error occurred in the logging infrastructure.
See Also:
LOGGING_DEBUG, LOGGING_INFO, LOGGING_WARN, LOGGING_ERROR, LOGGING_FATAL, setLoggingLevel(int)
WATA Integration
Host Applicationcom.ibm.retail.saf.wata.host.logging.LoggingAgentManager
Host AppletLoggingApplet
FlowLog messages are filtered and then logged using log4j.