beautypg.com

BEA WebLogic Server User Manual

Page 65

background image

Example of a Generated Logger Class

Internationalization Guide

B-3

stacktrace="true"
>
This message is followed by a trace




messageid="600003"
method="logNoTrace(Throwable t)"
severity="warning"
stacktrace="false"
>
This message is not followed by a trace, but we
can insert its text : {0}





messageid="600004"
method="getId()"
severity="info"
>
This message's id will be in the next
message

A message can contain additional detailed
information.

This message is displayed on purpose
Nothing to do, the example is working

messageid="600005"
method="showId(String id)"
severity="info"
>
The previous message logged had message id
{0}





Listing B-2

shows the corresponding java source generated by

i18ngen

: