Справочник Пользователя для BEA WebLogic Server

Скачать
Страница из 88
Message Catalog Formats
Internationalization Guide
2-9
Log Message Catalog Example
The following example shows a log message catalog, 
MyUtilLog.xml
, with one log 
message.
Listing 2-2   Example of a Log Message Catalog
<?xml version="1.0"?>
<!DOCTYPE message_catalog PUBLIC "weblogic-message-catalog-dtd"     
"
http://www.bea.com/servers/wls700/dtd/
msgcat.dtd">
<message_catalog 
  l10n_package="programs.utils"
  i18n_package="programs.utils"
  subsystem="MYUTIL"
Element
Parent 
Element
Required/
Optional
Description
messagebody
log_message
Required
A string containing a short description for this 
message. This element may contain zero or more 
placeholders, 
{n}
 that are replaced by the 
appropriate argument when the log message is 
localized.
messagedetail
log_message
Required
A string containing a detailed description of the 
event. This element may contain zero or more 
placeholders, 
{n}
 that are replaced by the 
appropriate argument when the log message is 
localized.
cause
log_message
Required
A string describing the root cause of the problem. 
This element may contain zero or more 
placeholders, 
{n}
 that are replaced by the 
appropriate argument when the log message is 
localized.
action
log_message
Required
A string describing the recommended resolution. 
This element may contain zero or more 
placeholders, {n} that are replaced by the 
appropriate argument when the log message is 
localized.