A method for enforcing internationalization uses pre-logging subroutines, i.e.,
helper methods, to determine whether a high priority debug log message is localized,
and reject a string message that is not localized in a user's native language.
A localized message may be constructed by passing message keys and parameters to
a translation subroutine, which is implemented by a localized messaged factory.
As a result, only a localized message may be passed to the helper methods, and
the localized message is typically translated into a text string in the user's
native language before being passed to a raw logging interface to be logged, thus
automatically enforcing internationalization.