What if my Apache Camel routes use different logging frameworks (Log4J vs. SLF4J vs. Logback)?
Nodinite is logging-framework agnostic. You output [JSON Log Event][] format to intermediate storage—doesn't matter whether you use Log4J, SLF4J, Logback, JUL, or custom code.
Option 1 (Custom Appender): Create Log4J2/Logback appender that converts log statements to [JSON Log Event][] format and writes to file/database. Camel routes use standard logger: log.info("Processing Order {}", orderId).
Option 2 (Camel Processor): Create reusable Camel processor bean that formats [JSON Log Event][] and writes to intermediate storage. Routes call: .process("nodiniteLogger").
Option 3 (Direct HTTP): Camel routes POST [JSON Log Event][] JSON directly to [Log API][] endpoint (synchronous—not recommended for high-volume routes).
Recommendation: Start with Option 2 (Camel processor) for full control and vendor-neutral design. Later migrate to Option 1 (custom appender) if you want to leverage existing Log4J/SLF4J statements across 200 routes without changing .log() calls.
Related Questions
See all FAQs: [Troubleshooting Overview][]