String logLevel=LogUtil.toStringType(log.getLogLevel(),"ERROR");
sct.set("strlogfile",ls.getSource());
sct.set("logfile",logFile);
sct.set("loglevel",logLevel);
int maxThreads=20;
SpoolerEngine engine = config.getSpoolerEngine();
if(engine instanceof SpoolerEngineImpl) {
maxThreads=((SpoolerEngineImpl)engine).getMaxThreads();
}
sct.set("spoolEnable",Caster.toBoolean(config.isMailSpoolEnable()));