ObjectUtil.classForName("org.apache.log4j.Level");
Class clazz = ObjectUtil.classForName(clazzName);
Constructor ctor = clazz.getConstructor(new Class[0]);
final LoggerFactory factory = (LoggerFactory) ctor.newInstance(new Object[0]);
factory.configure(config);
return factory;
} catch (IllegalArgumentException e)
{
return null;