+ /**
+ * Set the logging to output the specified log level and upwards to standard output.
+ *
+ * @param level the minimum logging level to output.
+ */
+ public static void setLogOutputLevel(LogLevel level) {
+ logger = new PrintStreamLogger();
+ for (LogLevel l : LogLevel.values()) {
+ if (l.atLeast(level)) {
+ ((PrintStreamLogger) logger).setOutput(l, System.out);
+ }
+ }
+
+ }
+
+
+ /**
+ * Return the translator to use for obtaining translated strings.
+ * @return a translator.
+ */
+ public static Translator getTranslator() {
+ return translator;
+ }
+
+ /**
+ * Set the translator used in obtaining translated strings.
+ * @param translator the translator to set.
+ */
+ public static void setTranslator(Translator translator) {
+ Application.translator = translator;
+ }
+
+