* @throws MaltChainedException
*/
public Logger initConfigLogger(String logfile, String level) throws MaltChainedException {
if (logfile != null && logfile.length() > 0 && !logfile.equalsIgnoreCase("stdout") && configDir != null) {
configLogger = Logger.getLogger(logfile);
FileAppender fileAppender = null;
try {
fileAppender = new FileAppender(new PatternLayout("%m"),configDir.getWorkingDirectory().getPath()+File.separator+logfile, true);
} catch(IOException e) {
throw new ConfigurationException("It is not possible to create a configuration log file. ", e);
}
fileAppender.setThreshold(Level.toLevel(level, Level.INFO));
configLogger.addAppender(fileAppender);
configLogger.setLevel(Level.toLevel(level, Level.INFO));
} else {
configLogger = SystemLogger.logger();
}