LoggerFactory { public static void setIncludeLoggerName(boolean includeLoggerName) { LoggerFactory.includeLoggerName = includeLoggerName; }  static void setDateFormatString(String dateFormatString); static void setIncludeLoggerName(boolean includeLoggerName); static void setIncludeThreadName(boolean includeThreadName); static void setIncludeClassName(boolean includeClassName); static boolean isIncludeLoggerName(); static boolean isIncludeThreadName(); static boolean isIncludeClassName(); static Logger getLogger(String name); static Logger getLogger(Class<?> clazz);  }
@Test public void testSetIncludeLoggerName() { LoggerFactory.setIncludeLoggerName(false); Logger result = LoggerFactory.getLogger(this.getClass()); boolean includeLoggerName = (boolean) Whitebox.getInternalState(result, "includeLoggerName"); assertFalse(includeLoggerName); JsonLogger jsonLogger = result.info().message("A message"); includeLoggerName = (boolean) Whitebox.getInternalState(jsonLogger, "includeLoggerName"); assertFalse(includeLoggerName); }