public abstract class Logger extends Object
retrofit.RestAdapter.Log
.Modifier and Type | Class and Description |
---|---|
static class |
Logger.ErrorLogger
Logs to System.err.
|
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 IOException |
logIOException(String configKey,
Logger.Level logLevel,
IOException ioe,
long elapsedTime) |
protected void |
logRequest(String configKey,
Logger.Level logLevel,
Request request) |
protected void |
logRetry(String configKey,
Logger.Level logLevel) |
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 string
args
- arguments applied to format
protected void logRequest(String configKey, Logger.Level logLevel, Request request)
protected void logRetry(String configKey, Logger.Level logLevel)
protected Response logAndRebufferResponse(String configKey, Logger.Level logLevel, Response response, long elapsedTime) throws IOException
IOException
protected IOException logIOException(String configKey, Logger.Level logLevel, IOException ioe, long elapsedTime)
Copyright © 2012–2020 OpenFeign. All rights reserved.