APISonar


org.voltcore.utils.RateLimitedLogger.log

> org > voltcore > utils > RateLimitedLogger > log
org APIs voltcore APIs utils APIs RateLimitedLogger APIs log APIs

Example 1
private static final RateLimitedLogger m_rate_limited_log = new RateLimitedLogger(10 * 1000, m_log, Level.WARN);

    public AuthenticationResult authenticate(Request request) {
        AuthenticationResult authResult = getAuthenticationResult(request);
        if (!authResult.isAuthenticated()) {
            m_rate_limited_log.log("JSON interface exception: " + authResult.m_message, EstTime.currentTimeMillis());
        }
        return authResult;
    }