test_class.file: webbeans-slf4j/src/test/java/org/apache/openwebbeans/slf4j/Slf4jLoggerFactoryTest.java
test_class.identifier: Slf4jLoggerFactoryTest
test_case.body: @Test
      public void ensureLogGoesOnSlf4j() {
          final Logger logger = WebBeansLoggerFacade.getLogger(Slf4jLoggerFactoryTest.class);
          assertTrue(logger.getClass().getName(), Slf4jLogger.class.isInstance(logger));
  
          final PrintStream original = System.err;
          final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
          System.setErr(new PrintStream(new OutputStream() {
  
              @Override
              public void write(final int b) {
                  buffer.write(b);
                  original.write(b);
              }
  
              @Override
              public void write(final byte[] b) throws IOException {
                  buffer.write(b);
                  original.write(b);
              }
  
              @Override
              public void write(final byte[] b, final int off, final int len) {
                  buffer.write(b, off, len);
                  original.write(b, off, len);
              }
          }));
          try {
              logger.info("test log");
          } finally {
              System.setErr(original);
          }
          assertEquals(
                  "[main] INFO " + getClass().getName() + " - test log\n",
                  new String(buffer.toByteArray(), StandardCharsets.UTF_8));
      }
test_case.class_method_signature: Slf4jLoggerFactoryTest.ensureLogGoesOnSlf4j()
test_case.full_signature: @Test public void ensureLogGoesOnSlf4j()
test_case.identifier: ensureLogGoesOnSlf4j
test_case.invocations: getLogger assertTrue getName getClass isInstance setErr write write write write write write info setErr assertEquals getName getClass toByteArray
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void ensureLogGoesOnSlf4j()
focal_class.file: webbeans-slf4j/src/main/java/org/apache/openwebbeans/slf4j/Slf4jLoggerFactory.java
focal_class.identifier: Slf4jLoggerFactory
focal_class.interfaces: implements WebBeansLoggerFactory
focal_class.class_method_signature: Slf4jLoggerFactory.getLogger(final Class<?> clazz, final Locale desiredLocale)
focal_class.full_signature: @Override public Logger getLogger(final Class<?> clazz, final Locale desiredLocale)
focal_class.identifier: getLogger
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<?> clazz, final Locale desiredLocale)
focal_class.return: Logger
focal_class.signature: Logger getLogger(final Class<?> clazz, final Locale desiredLocale)
focal_class.class_method_signature: Slf4jLoggerFactory.getLogger(final Class<?> clazz)
focal_class.full_signature: @Override public Logger getLogger(final Class<?> clazz)
focal_class.identifier: getLogger
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<?> clazz)
focal_class.return: Logger
focal_class.signature: Logger getLogger(final Class<?> clazz)
focal_method.body: @Override
      public Logger getLogger(final Class<?> clazz, final Locale desiredLocale)
      {
          return new Slf4jLogger(clazz.getName(), ResourceBundle.getBundle("openwebbeans/Messages", desiredLocale).toString());
      }
focal_method.class_method_signature: Slf4jLoggerFactory.getLogger(final Class<?> clazz, final Locale desiredLocale)
focal_method.full_signature: @Override public Logger getLogger(final Class<?> clazz, final Locale desiredLocale)
focal_method.identifier: getLogger
focal_method.invocations: getName toString getBundle
focal_method.modifiers: @Override public
focal_method.parameters: (final Class<?> clazz, final Locale desiredLocale)
focal_method.return: Logger
focal_method.signature: Logger getLogger(final Class<?> clazz, final Locale desiredLocale)