Package feign

Class Logger

    • Constructor Summary

      Constructors 
      Constructor Description
      Logger()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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 java.io.IOException logIOException​(java.lang.String configKey, Logger.Level logLevel, java.io.IOException ioe, long elapsedTime)  
      protected void logRequest​(java.lang.String configKey, Logger.Level logLevel, Request request)  
      protected void logRetry​(java.lang.String configKey, Logger.Level logLevel)  
      protected static java.lang.String methodTag​(java.lang.String configKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Logger

        public Logger()
    • Method Detail

      • methodTag

        protected static java.lang.String methodTag​(java.lang.String configKey)
      • log

        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. Messages will be http request and response text.
        Parameters:
        configKey - value of Feign.configKey(Class, java.lang.reflect.Method)
        format - format string
        args - arguments applied to format
      • logRequest

        protected void logRequest​(java.lang.String configKey,
                                  Logger.Level logLevel,
                                  Request request)
      • logRetry

        protected void logRetry​(java.lang.String configKey,
                                Logger.Level logLevel)
      • logAndRebufferResponse

        protected Response logAndRebufferResponse​(java.lang.String configKey,
                                                  Logger.Level logLevel,
                                                  Response response,
                                                  long elapsedTime)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • logIOException

        protected java.io.IOException logIOException​(java.lang.String configKey,
                                                     Logger.Level logLevel,
                                                     java.io.IOException ioe,
                                                     long elapsedTime)