@Test public void testInjectedClassName() { @SuppressWarnings("deprecation") GoogleLogger logger = GoogleLogger.forInjectedClassName("foo/bar/Baz"); assertThat(logger.getBackend().getLoggerName()).isEqualTo("foo.bar.Baz"); }
@Deprecated public static GoogleLogger forInjectedClassName(String className) { checkArgument(!className.isEmpty(), "injected class name is empty"); return new GoogleLogger(Platform.getBackend(className.replace('/', '.'))); }
GoogleLogger extends AbstractLogger<GoogleLogger.Api> { @Deprecated public static GoogleLogger forInjectedClassName(String className) { checkArgument(!className.isEmpty(), "injected class name is empty"); return new GoogleLogger(Platform.getBackend(className.replace('/', '.'))); } }
GoogleLogger extends AbstractLogger<GoogleLogger.Api> { @Deprecated public static GoogleLogger forInjectedClassName(String className) { checkArgument(!className.isEmpty(), "injected class name is empty"); return new GoogleLogger(Platform.getBackend(className.replace('/', '.'))); } GoogleLogger(LoggerBackend loggerBackend); }
GoogleLogger extends AbstractLogger<GoogleLogger.Api> { @Deprecated public static GoogleLogger forInjectedClassName(String className) { checkArgument(!className.isEmpty(), "injected class name is empty"); return new GoogleLogger(Platform.getBackend(className.replace('/', '.'))); } GoogleLogger(LoggerBackend loggerBackend); static GoogleLogger forEnclosingClass(); @Deprecated static GoogleLogger forInjectedClassName(String className); @Override Api at(Level level); }
GoogleLogger extends AbstractLogger<GoogleLogger.Api> { @Deprecated public static GoogleLogger forInjectedClassName(String className) { checkArgument(!className.isEmpty(), "injected class name is empty"); return new GoogleLogger(Platform.getBackend(className.replace('/', '.'))); } GoogleLogger(LoggerBackend loggerBackend); static GoogleLogger forEnclosingClass(); @Deprecated static GoogleLogger forInjectedClassName(String className); @Override Api at(Level level);  }