public abstract class Logger extends 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(String configKey,
String format,
Object... args)
Override to log requests and responses using your own implementation.
|
protected Response |
logAndRebufferResponse(String configKey,
Logger.Level logLevel,
Response response,
long elapsedTime) |
protected void |
logRequest(String configKey,
Logger.Level logLevel,
Request request) |
protected static String |
methodTag(String configKey) |
protected abstract void log(String configKey, String format, Object... args)
configKey - value of Feign.configKey(Class, java.lang.reflect.Method)format - format stringargs - arguments applied to formatprotected void logRequest(String configKey, Logger.Level logLevel, Request request)
protected Response logAndRebufferResponse(String configKey, Logger.Level logLevel, Response response, long elapsedTime) throws IOException
IOExceptionCopyright © 2012–2016 OpenFeign. All rights reserved.