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");
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);
}
}
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);
} });