value = hostConf.getLogConfiguration().get("append");
if (value!=null) {
append = value.equals("true");
}
try {
AccessLogFileHandler handler = new AccessLogFileHandler(pattern,limit,count,append);
value = hostConf.getLogConfiguration().get("encoding");
if (value!=null) {
handler.setEncoding(value);
}
value = hostConf.getLogConfiguration().get("level");
handler.setLevel(Level.ALL);
if (value!=null) {
try {
handler.setLevel(Level.parse(value));
} catch (Exception ex) {
getLogger().log(Level.SEVERE,"Cannot parse level value "+value+" for log configuration: "+ex.getMessage());
}
}
hostLog.addHandler(handler);