IBM WebSphere Adapters User Manual page 185

Version 6 release 2
Table of Contents

Advertisement

Message types
There are two message types for adapters, ADAPTER_RBUNDLE. The BASE_RBUNDLE is
reserved for the Adapter Foundation Classes. The message types are used to
distinguish between the adapter and the base classes message file. The default
value of Message Type field is ADAPTER_RBUNDLE. You use only the ADAPTER_RBUNDLE
message type because you should only access adapter message file.
Log levels
Log Levels and indicators
Writing a log message
Use the log method of the LogUtils class to generate log messages. This method
accepts parameters similar to that of the trace file. Instead of providing a
hard-coded message, however, provide a key to the message from the log message
file. This log method can also take optional parameters if there are values to be
substituted in the message.
void log
(Level l, int bundleType, String classname, String method, String msgKey)
void log
(Level l, int bundleType , String classname, String method, String msgKey,
Object[] params)
For example, if you have defined parameters in your log message such as
Successfully processed business object {1} with id {2}, you would provide
values for those parameters using the argument params[].
Note: Since parameters are not translated, avoid passing hard-coded phrases as
parameters because the resulting message will be a combination of English and
Level
Fatal
Severe
Warning
Audit
Info
Indicator
F
E
W
A
I
WebSphere Adapter development overview
Significance
Task cannot continue.
Component cannot function
Task cannot continue.
Component can still function.
This can also indicate an
impending fatal error,
including situations that
strongly suggest that
resources are on the verge of
being depleted.
Potential error or impending
error. This includes
conditions that indicate a
progressive failure - for
example, the potential
leaking of resources.
Significant event affecting
server state or resources
General information
outlining overall task
progress.
179

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Websphere adapter toolkit

Table of Contents