public Log createLog(String name)
{
LogDevice dev;
if (_provider.equalsIgnoreCase("basic")) {
dev = new anvil.server.basic.BasicLogDevice();
} else if (_provider != null) {
try {
dev = (LogDevice)Class.forName(_provider).newInstance();
} catch (ConfigurationError e) {
e.fillInStackTrace();
throw e;
} catch (Throwable t) {
throw new ConfigurationError("Couldn't create log device: "+_provider+", reason: "+t.toString());
}
} else {
dev = new anvil.server.basic.BasicLogDevice();
}
dev.initialize(getParent());
Log log = new Log(name, dev);
log.setSeverity(_level);
return log;
}