Move to our new Java logging based logging style which also fixes a conflict

between logging in the Narya util package and the Nenya util package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4214 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-06-23 19:32:51 +00:00
parent f6f3c89fe0
commit ecac8e0f6d
5 changed files with 26 additions and 41 deletions
@@ -28,6 +28,8 @@ import java.util.ResourceBundle;
import com.samskivert.util.StringUtil;
import static com.threerings.NaryaLog.log;
/**
* The message manager provides a thin wrapper around Java's built-in
* localization support, supporting a policy of dividing up localization
@@ -70,7 +72,7 @@ public class MessageManager
// use the default locale
_locale = Locale.getDefault();
Log.info("Using locale: " + _locale + ".");
log.info("Using locale: " + _locale + ".");
// make sure the prefix ends with a dot
if (!_prefix.endsWith(".")) {
@@ -139,7 +141,7 @@ public class MessageManager
rbundle = ResourceBundle.getBundle(fqpath, _locale);
}
} catch (MissingResourceException mre) {
Log.warning("Unable to resolve resource bundle " +
log.warning("Unable to resolve resource bundle " +
"[path=" + fqpath + ", locale=" + _locale + "].");
}
@@ -159,7 +161,7 @@ public class MessageManager
// nothing to worry about
} catch (Throwable t) {
Log.warning("Failure instantiating custom message bundle " +
log.warning("Failure instantiating custom message bundle " +
"[mbclass=" + mbclass + ", error=" + t + "].");
}
}