public abstract class Logger
extends java.lang.Object
retrofit.RestAdapter.Log.| Modifier and Type | Class and Description |
|---|---|
static class |
Logger.ErrorLogger
logs to the category
Logger at Level.FINE. |
static class |
Logger.JavaLogger
logs to the category
Logger at Level.FINE, if loggable. |
static class |
Logger.Level
Controls the level of logging.
|
static class |
Logger.NoOpLogger |
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
log(java.lang.String configKey,
java.lang.String format,
java.lang.Object... args)
Override to log requests and responses using your own implementation.
|
protected Response |
logAndRebufferResponse(java.lang.String configKey,
Logger.Level logLevel,
Response response,
long elapsedTime) |
protected void |
logRequest(java.lang.String configKey,
Logger.Level logLevel,
Request request) |
protected static java.lang.String |
methodTag(java.lang.String configKey) |
protected static java.lang.String methodTag(java.lang.String configKey)
protected abstract void log(java.lang.String configKey,
java.lang.String format,
java.lang.Object... args)
configKey - value of Feign.configKey(Class, java.lang.reflect.Method)format - format stringargs - arguments applied to formatprotected void logRequest(java.lang.String configKey,
Logger.Level logLevel,
Request request)
protected Response logAndRebufferResponse(java.lang.String configKey, Logger.Level logLevel, Response response, long elapsedTime) throws java.io.IOException
java.io.IOException