public class ZooTrace extends Object
Log4j must be correctly configured to capture the TRACE messages.
Modifier and Type | Field and Description |
---|---|
static long |
CLIENT_DATA_PACKET_TRACE_MASK |
static long |
CLIENT_PING_TRACE_MASK |
static long |
CLIENT_REQUEST_TRACE_MASK |
static long |
EVENT_DELIVERY_TRACE_MASK |
static long |
JMX_TRACE_MASK |
static long |
SERVER_PACKET_TRACE_MASK |
static long |
SERVER_PING_TRACE_MASK |
static long |
SESSION_TRACE_MASK |
static long |
WARNING_TRACE_MASK |
Constructor and Description |
---|
ZooTrace() |
Modifier and Type | Method and Description |
---|---|
static long |
getTextTraceLevel() |
static boolean |
isTraceEnabled(org.slf4j.Logger log,
long mask) |
static void |
logQuorumPacket(org.slf4j.Logger log,
long mask,
char direction,
QuorumPacket qp) |
static void |
logRequest(org.slf4j.Logger log,
long mask,
char rp,
Request request,
String header) |
static void |
logTraceMessage(org.slf4j.Logger log,
long mask,
String msg) |
static void |
setTextTraceLevel(long mask) |
public static final long CLIENT_REQUEST_TRACE_MASK
public static final long CLIENT_DATA_PACKET_TRACE_MASK
public static final long CLIENT_PING_TRACE_MASK
public static final long SERVER_PACKET_TRACE_MASK
public static final long SESSION_TRACE_MASK
public static final long EVENT_DELIVERY_TRACE_MASK
public static final long SERVER_PING_TRACE_MASK
public static final long WARNING_TRACE_MASK
public static final long JMX_TRACE_MASK
public static long getTextTraceLevel()
public static void setTextTraceLevel(long mask)
public static boolean isTraceEnabled(org.slf4j.Logger log, long mask)
public static void logTraceMessage(org.slf4j.Logger log, long mask, String msg)
public static void logQuorumPacket(org.slf4j.Logger log, long mask, char direction, QuorumPacket qp)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.