Exemplo n.º 1
0
 protected void logException(Exchange exchange, Throwable throwable) {
   if (tracer.isTraceExceptions()) {
     if (tracer.isLogStackTrace()) {
       logger.process(exchange, throwable);
     } else {
       logger.process(exchange, ", Exception: " + throwable.toString());
     }
   }
 }
Exemplo n.º 2
0
 protected void logExchange(Exchange exchange) throws Exception {
   // process the exchange that formats and logs it
   logger.process(exchange);
 }