APISonar


com.alibaba.csp.sentinel.cluster.server.envoy.rls.log.RlsAccessLogger.log

> com > alibaba > csp > sentinel > cluster > server > envoy > rls > log > RlsAccessLogger > log
com APIs alibaba APIs csp APIs sentinel APIs cluster APIs server APIs envoy APIs rls APIs log APIs RlsAccessLogger APIs log APIs

Example 1
private void printAccessLogIfNecessary(String domain, RateLimitDescriptor descriptor, TokenResult result) {
        if (!RlsAccessLogger.isEnabled()) {
            return;
        }
        String message = new StringBuilder("[RlsAccessLog] domain=").append(domain)
            .append(", descriptor=").append(TextFormat.shortDebugString(descriptor))
            .append(", checkStatus=").append(result.getStatus())
            .append(", remaining=").append(result.getRemaining())
            .toString();
        RlsAccessLogger.log(message);
    }