Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ECLIPSE-223
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: James Strachan
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse IDE

Logview to show Camel trace in Fuse IDE

Created: 06/May/11 08:55 AM   Updated: 15/Jun/11 08:54 AM
Component/s: Camel Editor
Affects Version/s: None
Fix Version/s: 2.0


 Description  « Hide
It should be possible to enable trace in a Camel application.

And then from Fuse IDE to tap into that running Camel application and have a view which shows the trace messages on-line.

We should consider using a JSon representation of the trace message so we can more easily pump those messages into other usage (eg elasticksearch) for log analytics



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 06/May/11 08:56 AM
We can build a json outputter ourself in camel-core for that basic stuff to not have any 3rd pary JAR deps

StringBuilder writer = new StringBuilder();
writer.append("{ \"host\" : ");
quote(name, writer);
writer.append(",\n \"timestamp\" : ");
quote(formatDate(paxLoggingEvent.getTimeStamp()), writer);
writer.append(",\n \"level\" : ");
quote(paxLoggingEvent.getLevel().toString(), writer);
writer.append(",\n \"logger\" : ");
quote(paxLoggingEvent.getLoggerName(), writer);
writer.append(",\n \"thread\" : ");
quote(paxLoggingEvent.getThreadName(), writer);
writer.append(",\n \"message\" : ");
quote(paxLoggingEvent.getMessage(), writer);
writer.append(",\n \"properties\" : { ");
boolean first = true;
for (Object key : paxLoggingEvent.getProperties().keySet()) {
if (first) { first = false; } else { writer.append(", "); }
quote(key.toString(), writer);
writer.append(": ");
quote(paxLoggingEvent.getProperties().get(key).toString(), writer);
}
writer.append(" }");
writer.append("\n}");