* A LogHandler for feedlogs, as configured in applicationContext.properties.
*/
private static class FeedLogHandler extends JavaUtilLogHandler {
public FeedLogHandler(Context context) throws ConnectorManagerException {
try {
FeedFileHandler ffh = (FeedFileHandler) context.getApplicationContext()
.getBean("FeedHandler", FeedFileHandler.class);
String ffhPattern = ffh.getPattern();
if (ffhPattern != null && ffhPattern.length() > 0) {
super.pattern = ffhPattern;
}
Formatter formatter = ffh.getFormatter();
isXMLFormat = (formatter == null ||
(formatter.getClass().getName().toUpperCase().indexOf("XML") >= 0));
} catch (BeansException be) {
throw new ConnectorManagerException(
"Unable to retrieve Feed Logging configuration: " + be.toString());