209.4.3. KuraRouter 工具
Kura router 基础类提供许多有用的工具。本节逐一探讨它们。
209.4.3.1. SLF4J 日志记录器
Kura 使用 SLF4J facade 进行日志记录。受保护的成员 日志 会返回与给定 Kura 路由器关联的 SLF4J 日志记录器实例。
public class MyKuraRouter extends KuraRouter {
@Override
public void configure() throws Exception {
log.info("Configuring Camel routes!");
...
}
}