All Downloads are FREE. Search and download functionalities are using the official Maven repository.

syncloud.google.docs.HttpLogger Maven / Gradle / Ivy

package syncloud.google.docs;

import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpResponse;
import syncloud.core.log.Logger;

public class HttpLogger {
    private static Logger logger = Logger.getLogger(HttpLogger.class);

    public static void log(HttpResponse response) {
        logger.debug("response: " + response.getStatusCode() + ", " + response.getStatusMessage());
    }

    public static void log(HttpRequest request) {
        logger.debug("request: " + request.getMethod().name() + ", " + request.getUrl());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy