@Test public void useLoggerByClassIfRequested() throws Exception { slf4j.logLevel("debug"); slf4j.expectMessages( "DEBUG feign.Feign - [someMethod] This is my message" + System.lineSeparator()); logger = new Slf4jLogger(Feign.class); logger.log(CONFIG_KEY, "This is my message"); }
@Override protected void log(String configKey, String format, Object... args) { if (logger.isDebugEnabled()) { logger.debug(String.format(methodTag(configKey) + format, args)); } }
Slf4jLogger extends feign.Logger { @Override protected void log(String configKey, String format, Object... args) { if (logger.isDebugEnabled()) { logger.debug(String.format(methodTag(configKey) + format, args)); } } }
Slf4jLogger extends feign.Logger { @Override protected void log(String configKey, String format, Object... args) { if (logger.isDebugEnabled()) { logger.debug(String.format(methodTag(configKey) + format, args)); } } Slf4jLogger();  Slf4jLogger(Class<?> clazz);  Slf4jLogger(String name);   Slf4jLogger(Logger logger); }
Slf4jLogger extends feign.Logger { @Override protected void log(String configKey, String format, Object... args) { if (logger.isDebugEnabled()) { logger.debug(String.format(methodTag(configKey) + format, args)); } } Slf4jLogger();  Slf4jLogger(Class<?> clazz);  Slf4jLogger(String name);   Slf4jLogger(Logger logger);  }
Slf4jLogger extends feign.Logger { @Override protected void log(String configKey, String format, Object... args) { if (logger.isDebugEnabled()) { logger.debug(String.format(methodTag(configKey) + format, args)); } } Slf4jLogger();  Slf4jLogger(Class<?> clazz);  Slf4jLogger(String name);   Slf4jLogger(Logger logger);   }