// "<br/>" );
// stackTrace = stackTrace.replace( "\t", " " );
// contentValue.append( "<br/>" ).append( stackTrace );
// }
final FeedEvent entry = new FeedEvent(
"LOG", // ignored
"ERROR_WARNING", // ignored
new Date(), // TODO: timestamp from log file?
null, // author "system"
null, // no link (maybe log config? or support?)
Maps.<String, String>newHashMap()
);
if (logLine.contains(" ERROR ")) {
entry.setTitle("Error");
}
else if (logLine.contains(" WARN ")) {
entry.setTitle("Warning");
}
entry.setContent(logLine);
entries.add(entry);
if (entries.size() > entriesToExtract) {
entries.remove(0);
}