Skip to main content

Tech Note 8

Controlling Curator Logging

Details

Curator logging can be customized. Use the following switches via the command line (-D) or via System.setProperty():

SwitchDescription
curator-dont-log-connection-problems=trueNormally, connection issues are logged as the warning "Connection attempt unsuccessful..." or the error "Connection timed out...". This switch turns these messages off.
curator-log-events=trueAll ZooKeeper events will be logged as DEBUG.
curator-log-only-first-connection-issue-as-error-level=trueWhen this switch is enabled, the first connection issue is logged as ERROR. Additional connection issues are logged as DEBUG until the connection is restored.