Namespace i$.log
Contains static functions and constants related to logging capabilities
Defined in: logging_layer.js.uncompressed.js.preCBT.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Entry point for accessing functions that provide logging and tracing capabilities.
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
i$.log.LEVEL_INFO
INFO is a message level for informational messages.
|
| <static> |
i$.log.LEVEL_SEVERE
SEVERE is a message level indicating a serious failure.
|
| <static> |
i$.log.LEVEL_TRACE
TRACE is a message level providing tracing information.
|
| <static> |
i$.log.LEVEL_WARNING
WARNING is a message level indicating a potential problem.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
i$.log.getLogger(loggerName)
Find or create a logger for a named subsystem.
|
Namespace Detail
i$.log
Entry point for accessing functions that provide logging and tracing capabilities.
Field Detail
<static>
i$.log.LEVEL_INFO
INFO is a message level for informational messages.
Typically INFO messages will be written to the console or its equivalent (like the system messages widget). So the INFO level should only be used for reasonably significant messages that will make sense to end users and system admins. This level is initialized to
Typically INFO messages will be written to the console or its equivalent (like the system messages widget). So the INFO level should only be used for reasonably significant messages that will make sense to end users and system admins. This level is initialized to
800.
<static>
i$.log.LEVEL_SEVERE
SEVERE is a message level indicating a serious failure.
In general SEVERE messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to system administrators. This level is initialized to
In general SEVERE messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to system administrators. This level is initialized to
1000.
<static>
i$.log.LEVEL_TRACE
TRACE is a message level providing tracing information.
TRACE is intended for relatively detailed tracing. The exact meaning of the this levels will vary between subsystems. In general the TRACE level should be used for information that will be broadly interesting to developers who do not have a specialized interest in the specific subsystem.
TRACE messages might include things like minor (recoverable) failures. Issues indicating potential performance problems are also worth logging as FINE. This level is initialized to
TRACE is intended for relatively detailed tracing. The exact meaning of the this levels will vary between subsystems. In general the TRACE level should be used for information that will be broadly interesting to developers who do not have a specialized interest in the specific subsystem.
TRACE messages might include things like minor (recoverable) failures. Issues indicating potential performance problems are also worth logging as FINE. This level is initialized to
500.
<static>
i$.log.LEVEL_WARNING
WARNING is a message level indicating a potential problem.
In general WARNING messages should describe events that will be of interest to end users or system managers, or which indicate potential problems. This level is initialized to
In general WARNING messages should describe events that will be of interest to end users or system managers, or which indicate potential problems. This level is initialized to
900.
Method Detail
<static>
{i$.log.Logger}
i$.log.getLogger(loggerName)
Find or create a logger for a named subsystem. If a logger has already been created with the given name
it is returned. Otherwise a new logger is created.
Please note: For faster access this object has been made available directly on i$ as i$.getLogger.
- Parameters:
- {String} loggerName
- A name for the logger. This should be a dot-separated name and should normally be based on the package name or class name of the subsystem, such as com.ibm.wps.component or com.ibm.wps.component.Class
- Returns:
- {i$.log.Logger} a suitable Logger