yangys
2024-04-25 070f4647e9d32111a145704c42c468631cbb7f47
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);
    }
}