for (final Element exception: elements)
{
String className = exception.attributeValue("class");
boolean logEnabled = exception.attributeValue("log") != null ?
Boolean.valueOf(exception.attributeValue("log")) : true;
LogLevel logLevel = LogLevel.error;
try
{
logLevel = exception.attributeValue("log-level") != null ?
LogLevel.valueOf(exception.attributeValue("log-level").toLowerCase()) : null;
}