improvements to Doc.java, corresponding fixes to the reference
[org.ibex.core.git] / src / org / ibex / Main.java
index bfc2abd..8003ada 100644 (file)
@@ -30,7 +30,7 @@ public class Main {
         System.err.println("Usage: ibex [-lawp] [ url | file | directory ]");
         System.err.println("");
         System.err.println("    -l <level>      set logging level to { debug, info (default), warn, error, silent }");
-        System.err.println("    -l rpc          write log to a file on disk");
+        System.err.println("    -l rpc          log all XML-RPC and SOAP conversations");
         System.err.println("    -l user@host    email log to user@host");
         System.err.println("    -l host:port    emit log to TCP socket");
         System.err.println("    -l <file>       write log to a file on disk");
@@ -58,7 +58,8 @@ public class Main {
                     else if (opt.equals("info")) Log.level = Log.INFO;
                     else if (opt.equals("warn")) Log.level = Log.WARN;
                     else if (opt.equals("error")) Log.level = Log.ERROR;
-                    else if (opt.equals("error")) Log.level = Log.SILENT;
+                    else if (opt.equals("silent")) Log.level = Log.SILENT;
+                    else if (opt.equals("rpc")) Log.rpc = true;
                     else Log.file(opt);
                 }
             }
@@ -93,6 +94,7 @@ public class Main {
         scarImage =
             Picture.load((Stream)Main.builtin.get("org/ibex/builtin/scar.png"),
                          new Scheduler.Task() { public void perform() throws JSExn, UnknownHostException {
+                             if (Log.on) Log.info(Main.class, "invoking initial template");
                              ibex.resolveString(startupTemplate, false).call(new Box(), null, null, null, 1);
                          } });