Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion core/src/main/java/feign/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;

/** Simple logging abstraction for debug messages. Adapted from {@code retrofit.RestAdapter.Log}. */
/**
* Simple logging abstraction for debug messages. Adapted from {@code retrofit.RestAdapter.Log}.
*
* <p>Request logging reflects the {@link Request} that Feign builds from the method invocation,
* captured before it is handed to the {@link Client}. Depending on the {@link Client}
* implementation, the bytes actually sent over the wire may differ from what is logged here. In
* particular the default {@link Client.Default} is backed by {@link java.net.HttpURLConnection},
* which silently drops headers the JDK treats as restricted (for example {@code Host}, {@code
* Connection} and {@code Content-Length}) unless the {@code sun.net.http.allowRestrictedHeaders}
* system property is set, so such a header can appear in the log without being present in the
* outgoing request.
*/
public abstract class Logger {

protected static String methodTag(String configKey) {
Expand Down