Index: /trunk/quest-runner/src/main/java/de/ugoe/cs/quest/ui/Runner.java
===================================================================
--- /trunk/quest-runner/src/main/java/de/ugoe/cs/quest/ui/Runner.java	(revision 676)
+++ /trunk/quest-runner/src/main/java/de/ugoe/cs/quest/ui/Runner.java	(revision 677)
@@ -35,4 +35,34 @@
         text, swt
     };
+    
+    public enum LEVELENUM {
+        OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL;
+        
+        public Level getLevel() {
+            switch (this)
+            {
+                case OFF:
+                    return Level.OFF;
+                case SEVERE:
+                    return Level.SEVERE;
+                case ALL:
+                    return Level.ALL;
+                case CONFIG:
+                    return Level.CONFIG;
+                case FINE:
+                    return Level.FINE;
+                case FINER:
+                    return Level.FINER;
+                case FINEST:
+                    return Level.FINEST;
+                case INFO:
+                    return Level.INFO;
+                case WARNING:
+                    return Level.WARNING;
+                default:
+                    throw new AssertionError("reached source code that should be unreachable");
+            }
+        }
+    }
 
     /**
@@ -61,19 +91,19 @@
 
         OptionParser parser = new OptionParser();
-        OptionSpec<Level> log4j =
+        OptionSpec<LEVELENUM> log4j =
             parser.accepts("log4j", "Allowed values: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL").withRequiredArg()
-                .ofType(Level.class).defaultsTo(Level.INFO);
+                .ofType(LEVELENUM.class).defaultsTo(LEVELENUM.INFO);
         OptionSpec<UITYPE> ui =
             parser.accepts("ui", "Allowed values: text, swt").withRequiredArg()
                 .ofType(UITYPE.class).defaultsTo(UITYPE.text);
-        OptionSpec<Level> trace =
+        OptionSpec<LEVELENUM> trace =
             parser.accepts("trace", "Allowed values: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL").withRequiredArg()
-                .ofType(Level.class).defaultsTo(Level.WARNING);
+                .ofType(LEVELENUM.class).defaultsTo(LEVELENUM.WARNING);
         OptionSet options = parser.parse(args);
 
         List<String> startupCommands = options.nonOptionArguments();
         try {
-            if(options.valueOf(log4j)!=Level.OFF) {
-                new Log4JLogger(options.valueOf(log4j));
+            if(options.valueOf(log4j)!=LEVELENUM.OFF) {
+                new Log4JLogger(options.valueOf(log4j).getLevel());
             }
 
@@ -81,5 +111,5 @@
             {
                 case text:
-                    TextConsole textConsole = new TextConsole(options.valueOf(trace));
+                    TextConsole textConsole = new TextConsole(options.valueOf(trace).getLevel());
                     for (String command : startupCommands) {
                         CommandExecuter.getInstance().exec(command);
@@ -88,5 +118,5 @@
                     break;
                 case swt:
-                    MainWindow mainWindow = new MainWindow(startupCommands, options.valueOf(trace));
+                    MainWindow mainWindow = new MainWindow(startupCommands, options.valueOf(trace).getLevel());
                     mainWindow.open();
                     break;
