yangys
2024-05-07 ec2552d891e163bd9054e0554188afc575bcdb70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.qianwen.core.http;
 
import okhttp3.logging.HttpLoggingInterceptor;
 
public enum LogLevel {
    NONE(HttpLoggingInterceptor.Level.NONE),
    BASIC(HttpLoggingInterceptor.Level.BASIC),
    HEADERS(HttpLoggingInterceptor.Level.HEADERS),
    BODY(HttpLoggingInterceptor.Level.BODY);
    
    private final HttpLoggingInterceptor.Level level;
 
    LogLevel(final HttpLoggingInterceptor.Level level) {
        this.level = level;
    }
 
    public HttpLoggingInterceptor.Level getLevel() {
        return this.level;
    }
}