Example Of A Generated Logger Class - BEA WebLogic Server Manual

Internationalization guide
Hide thumbs Also See for BEA WebLogic Server:
Table of Contents

Advertisement

B
Logger Class Reference for BEA WebLogic Server

Example of a Generated Logger Class

Listing B-1
Listing B-1 Example of Message Catalog
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE message_catalog PUBLIC "weblogic-message-catalog-dtd"
"http://www.bea.com/servers/wls600/msgcat.dtd">
<message_catalog
arguments.</messagebody>
B-2
Internationalization Guide
show an example of a catalog with a single message definition:
i18n_package="examples.i18n.logging"
l10n_package="examples.i18n.logging"
subsystem="I18N"
version="1.0"
baseid="600000"
endid="610000"
loggables="true"
>
<logmessage
messageid="600000"
method="logEntry()"
severity="info"
>
<messagebody>Starting I18nLog example...</messagebody>
<messagedetail></messagedetail>
<cause></cause>
<action></action>
</logmessage>
<logmessage
messageid="600001"
method="testArgs(String name,int cnt)"
severity="debug"
>
<messagebody>Class {0} started with {1,number}
<messagedetail></messagedetail>
<cause></cause>
<action></action>
</logmessage>
<logmessage
messageid="600002"
method="logTrace(Throwable t)"
severity="error"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BEA WebLogic Server and is the answer not in the manual?

Table of Contents

Save PDF