-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...oliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/utils/LogLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.algolia.utils; | ||
|
||
import okhttp3.logging.HttpLoggingInterceptor.Level; | ||
|
||
public enum LogLevel { | ||
/** | ||
* No logs. | ||
*/ | ||
NONE(Level.NONE), | ||
|
||
/** | ||
* Logs request and response lines and their respective headers. | ||
*/ | ||
HEADERS(Level.HEADERS), | ||
|
||
/** | ||
* Logs request and response lines and their respective headers and bodies (if present). | ||
*/ | ||
BODY(Level.BODY), | ||
|
||
/** | ||
* Logs request and response lines. | ||
*/ | ||
BASIC(Level.BASIC); | ||
|
||
private Level value; | ||
|
||
private LogLevel(Level value) { | ||
this.value = value; | ||
} | ||
|
||
public Level value() { | ||
return this.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters