@Test(expected = IllegalArgumentException.class) public void shouldNotAllowNullDefaultFactory() { VitamLoggerFactory.setDefaultFactory(null); }
public static void setDefaultFactory(final VitamLoggerFactory defaultFactory) { if (defaultFactory == null) { throw new IllegalArgumentException("defaultFactory must not be null"); } VitamLoggerFactory.defaultFactory = defaultFactory; }
VitamLoggerFactory { public static void setDefaultFactory(final VitamLoggerFactory defaultFactory) { if (defaultFactory == null) { throw new IllegalArgumentException("defaultFactory must not be null"); } VitamLoggerFactory.defaultFactory = defaultFactory; } }
VitamLoggerFactory { public static void setDefaultFactory(final VitamLoggerFactory defaultFactory) { if (defaultFactory == null) { throw new IllegalArgumentException("defaultFactory must not be null"); } VitamLoggerFactory.defaultFactory = defaultFactory; } VitamLoggerFactory(final VitamLogLevel level); }
VitamLoggerFactory { public static void setDefaultFactory(final VitamLoggerFactory defaultFactory) { if (defaultFactory == null) { throw new IllegalArgumentException("defaultFactory must not be null"); } VitamLoggerFactory.defaultFactory = defaultFactory; } VitamLoggerFactory(final VitamLogLevel level); static VitamLoggerFactory getDefaultFactory(); static void setDefaultFactory(final VitamLoggerFactory defaultFactory); static VitamLogger getInstance(final Class<?> clazz); static VitamLogger getInstance(final String name); static VitamLogLevel getLogLevel(); static void setLogLevel(final VitamLogLevel level); }
VitamLoggerFactory { public static void setDefaultFactory(final VitamLoggerFactory defaultFactory) { if (defaultFactory == null) { throw new IllegalArgumentException("defaultFactory must not be null"); } VitamLoggerFactory.defaultFactory = defaultFactory; } VitamLoggerFactory(final VitamLogLevel level); static VitamLoggerFactory getDefaultFactory(); static void setDefaultFactory(final VitamLoggerFactory defaultFactory); static VitamLogger getInstance(final Class<?> clazz); static VitamLogger getInstance(final String name); static VitamLogLevel getLogLevel(); static void setLogLevel(final VitamLogLevel level);  }