Class ZooTrace


  • public class ZooTrace
    extends Object
    This class encapsulates and centralizes tracing for the ZooKeeper server. Trace messages go to the log with TRACE level.

    Logback must be correctly configured to capture the TRACE messages.

    • Constructor Detail

      • ZooTrace

        public ZooTrace()
    • Method Detail

      • getTextTraceLevel

        public static long getTextTraceLevel()
      • setTextTraceLevel

        public static void setTextTraceLevel​(long mask)
      • isTraceEnabled

        public static boolean isTraceEnabled​(org.slf4j.Logger log,
                                             long mask)
      • logTraceMessage

        public static void logTraceMessage​(org.slf4j.Logger log,
                                           long mask,
                                           String msg)
      • logQuorumPacket

        public static void logQuorumPacket​(org.slf4j.Logger log,
                                           long mask,
                                           char direction,
                                           QuorumPacket qp)
      • logRequest

        public static void logRequest​(org.slf4j.Logger log,
                                      long mask,
                                      char rp,
                                      Request request,
                                      String header)