APISonar


org.httpkit.logger.ContextLogger.log

> org > httpkit > logger > ContextLogger > log
org APIs httpkit APIs logger APIs ContextLogger APIs log APIs

Example 1
final ContextLogger<String, Throwable> errorLogger;

    public void handle(HttpRequest req, RespCallback cb) {
        try {
            execs.submit(new HttpHandler(req, cb, handler, errorLogger, eventLogger, eventNames));
        } catch (RejectedExecutionException e) {
            errorLogger.log("increase :queue-size if this happens often", e);
            eventLogger.log(eventNames.serverStatus503);
            cb.run(HttpEncode(503, new HeaderMap(), "Server is overloaded, please try later"));
        }
    }