Package feign

Class Logger.JavaLogger

  • Enclosing class:
    Logger

    public static class Logger.JavaLogger
    extends Logger
    Logs to the category Logger at Level.FINE, if loggable.
    • Constructor Detail

      • JavaLogger

        public JavaLogger()
    • Method Detail

      • log

        protected void log​(java.lang.String configKey,
                           java.lang.String format,
                           java.lang.Object... args)
        Description copied from class: Logger
        Override to log requests and responses using your own implementation. Messages will be http request and response text.
        Specified by:
        log in class Logger
        Parameters:
        configKey - value of Feign.configKey(Class, java.lang.reflect.Method)
        format - format string
        args - arguments applied to format
      • appendToFile

        public Logger.JavaLogger appendToFile​(java.lang.String logfile)
        Helper that configures java.util.logging to sanely log messages at FINE level without additional formatting.