On Tue, Nov 1, 2011 at 5:33 PM, mkolakow <mkola...@up.com> wrote: > In our project's logging, we have recently started using Markers, which are > described in the following: > > http://logback.qos.ch/manual/filters.html > > According to the Camel docs: http://camel.apache.org/log.html Camel 2.7+ > uses SLF4J and I know that SLF4J supports the Marker interface. > > My question is if this is possible in the Camel Spring DSL, and how to do > it?
No. Camel uses slf4j for plain logging. > > In our Java code, we can do the following: > > Marker marker = MarkerFactory.getMarker( "id" ); > logger.warn( marker, "my log message" ); > > Naturally, we have the associated filter in our logback.groovy file, and the > filter itself is a class that extends AbstractMatcherFilter. > > So, in our routes, we have log statements like the following example: > > <camel:log message="Received message" logName="com.app.CamelReport" > loggingLevel="INFO"/> > How would you propose that you could define a marker in that <camel:log> tag ? > Is there a way to integrate Markers in the route? This would allow one to > selectively send log statements to various locations regardless of level. > > Thanks, > Michael Kolakowski > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Can-camel-use-a-Marker-as-used-in-logback-tp4955683p4955683.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/