OPENJPA-604 - Use English only locale for TRACE, INFO, WARN, ERROR and FATAL keywords in Log specification.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2008-05-21 14:41:02 +00:00
parent b2ba44fcfd
commit 11f4d0d7ad
1 changed files with 9 additions and 6 deletions

View File

@ -28,6 +28,7 @@ import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import org.apache.openjpa.lib.conf.Configurable;
@ -50,12 +51,14 @@ public class LogFactoryImpl
implements LogFactory, GenericConfigurable, Configurable {
private static Localizer _loc = Localizer.forPackage(LogFactoryImpl.class);
private static Localizer _locEn = Localizer.forPackage(
LogFactoryImpl.class, Locale.ENGLISH);
public static final String TRACE_STR = _loc.get("log-trace").getMessage();
public static final String INFO_STR = _loc.get("log-info").getMessage();
public static final String WARN_STR = _loc.get("log-warn").getMessage();
public static final String ERROR_STR = _loc.get("log-error").getMessage();
public static final String FATAL_STR = _loc.get("log-fatal").getMessage();
public static final String TRACE_STR = _locEn.get("log-trace").getMessage();
public static final String INFO_STR = _locEn.get("log-info").getMessage();
public static final String WARN_STR = _locEn.get("log-warn").getMessage();
public static final String ERROR_STR = _locEn.get("log-error").getMessage();
public static final String FATAL_STR = _locEn.get("log-fatal").getMessage();
public static final String STDOUT = "stdout";
public static final String STDERR = "stderr";
@ -230,7 +233,7 @@ public class LogFactoryImpl
case Log.FATAL:
return FATAL_STR;
default:
return _loc.get("log-unknown").getMessage();
return _locEn.get("log-unknown").getMessage();
}
}