Skip to content

Logging and Tracing

Randgalt edited this page Oct 10, 2011 · 5 revisions

Details

Curator is logging and tracing neutral. The Curator code is instrumented with logging and tracers but uses a driver mechanism that allows easy integration into your preferred logging and tracing frameworks. Both logging and tracing are optional - NOP drivers are set by default.

Logging

Connect Curator logging to your logging framework via an instance of LoggingDriver. Curator calls the various methods (e.g. debug(), warn(), etc.) and your instances proxies the calls to your logging framework. Inform Curator of your logging driver instance by calling CuratorZookeeperClient.setLog().

Tracing

Connect Curator tracing to your tracing framework via an instance of TracerDriver. Curator calls the various methods (e.g. addTrace() or addCount() ) and your instances proxies the calls to your tracing framework. Inform Curator of your tracing driver instance by calling CuratorZookeeperClient.setTracerDriver().

Clone this wiki locally