yangys
2024-05-18 c9b04383c77f91ac309e37e70783edcf8a9298b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.qianwen.core.http;
 
import okhttp3.logging.HttpLoggingInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
public class Slf4jLogger implements HttpLoggingInterceptor.Logger {
    private static final Logger log = LoggerFactory.getLogger(Slf4jLogger.class);
    public static final HttpLoggingInterceptor.Logger INSTANCE = new Slf4jLogger();
 
    public void log(String message) {
        log.info(message);
    }
}