yangys
2024-05-09 60e317f7782c718d28920060fd686d2092c99c1e
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;
    }
}