return LOG_Q;
}
public Mediator createMediator(OMElement elem) {
LogMediator logMediator = new LogMediator();
// after successfully creating the mediator
// set its common attributes such as tracing etc
initMediator(logMediator,elem);
// Set the high level set of properties to be logged (i.e. log level)
OMAttribute level = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "level"));
if (level != null) {
String levelstr = level.getAttributeValue();
if (SIMPLE.equals(levelstr)) {
logMediator.setLogLevel(LogMediator.SIMPLE);
} else if (HEADERS.equals(levelstr)) {
logMediator.setLogLevel(LogMediator.HEADERS);
} else if (FULL.equals(levelstr)) {
logMediator.setLogLevel(LogMediator.FULL);
} else if (CUSTOM.equals(levelstr)) {
logMediator.setLogLevel(LogMediator.CUSTOM);
}
}
// check if a custom separator has been supplied, if so use it
OMAttribute separator = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "separator"));
if (separator != null) {
logMediator.setSeparator(separator.getAttributeValue());
}
logMediator.addAllProperties(MediatorPropertyFactory.getMediatorProperties(elem));
return logMediator;
}