How loggable objects are used – BEA WebLogic Server User Manual
Page 74

C
Loggable Object Reference for BEA WebLogic Server
C-2
Internationalization Guide
How Loggable Objects Are Used
To create a
Logger
that provides methods to return
Loggable objects
, you need to
set the
loggables
attribute in the message catalog.
For example, consider the test.xml catalog shown in
Listing C-1 test.xml Message Catalog
"http://www.bea.com/servers/wls600/msgcat.dtd">
 version="1.0"
 baseid="500000"
 endid="500001"
 loggables="true"
 >
 
 severity="error"
 method="logIOError(Throwable t)"
 >
 
 IO failure detected. 
 
 
 
 
 
 
 
 
When you run this catalog through the
i18ngen
utility, a
Logger
class is created for
this catalog with the following two methods:
logIOError
(Throwable)—logs the message
