public static boolean runImport(final OAuth2Persister source, final OAuth2Persister target, final boolean clean) { if (BasicOAuth2Store.LOG.isLoggable()) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "runImport", new Object[] { source, target, clean }); } // No import for default persistence return false; }
public static FilteredLogger getFilteredLogger(final String className) { return new FilteredLogger(className); }
public boolean isLoggable() { return this.isLoggable(FilteredLogger.DEFAULT_LOG_LEVEL); }
public void storeOAuth2Accessor(final OAuth2Accessor accessor) { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "storeOAuth2Accessor", accessor); } this.cache.storeOAuth2Accessor(accessor); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "storeOAuth2Accessor"); } }
@Test public void testEntering_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String sourceClass = ""; final String sourceMethod = ""; final Object[] params = new Object[] {}; fixture.entering(sourceClass, sourceMethod, params); }
@Test public void testLog_6() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object[] params = new Object[] {}; fixture.log(logLevel, msg, params); } }
@Test public void testExiting_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String sourceClass = ""; final String sourceMethod = ""; fixture.exiting(sourceClass, sourceMethod); }
@Inject public GadgetOAuth2TokenStore(final OAuth2Store store, final GadgetSpecFactory specFactory) { this.store = store; this.specFactory = specFactory; if (GadgetOAuth2TokenStore.LOG.isLoggable()) { GadgetOAuth2TokenStore.LOG.log("this.store = {0}", this.store); GadgetOAuth2TokenStore.LOG.log("this.specFactory = {0}", this.specFactory); } }
public void log(final String msg, final Object[] params) { this.log(FilteredLogger.DEFAULT_LOG_LEVEL, msg, params); }
private static String filteredParam(final Object param) { final String paramString; if (param != null) { paramString = FilteredLogger.filterSecrets(param.toString()); } else { paramString = ""; } return paramString; }
public OAuth2Accessor getOAuth2Accessor(final OAuth2CallbackState state) { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "getOAuth2Accessor", state); } final OAuth2Accessor ret = this.cache.getOAuth2Accessor(state); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "getOAuth2Accessor", ret); } return ret; }
@Test public void testEntering_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String sourceClass = ""; final String sourceMethod = ""; fixture.entering(sourceClass, sourceMethod); }
@Test public void testLog_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Object[] params = new Object[] {}; fixture.log(msg, params); }
@Override protected void configure() { if (OAuth2HandlerModule.LOG.isLoggable()) { OAuth2HandlerModule.LOG.entering(OAuth2HandlerModule.class.getName(), "configure"); } }
@Test public void testExiting_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String sourceClass = ""; final String sourceMethod = ""; fixture.exiting(sourceClass, sourceMethod); }
@Inject public TokenAuthorizationResponseHandler(final Provider<OAuth2Message> oauth2MessageProvider, final OAuth2Store store) { this.oauth2MessageProvider = oauth2MessageProvider; this.store = store; if (TokenAuthorizationResponseHandler.LOG.isLoggable()) { TokenAuthorizationResponseHandler.LOG.log("this.oauth2MessageProvider = {0}", this.oauth2MessageProvider); TokenAuthorizationResponseHandler.LOG.log("this.store = {0}", this.store); } }
public void log(final String msg, final Object param) { this.log(FilteredLogger.DEFAULT_LOG_LEVEL, msg, param); }
public OAuth2Token createToken() { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "createToken"); } final OAuth2Token ret = this.internalCreateToken(); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "clearCache", ret); } return ret; }
@Test public void testEntering_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String sourceClass = ""; final String sourceMethod = ""; fixture.entering(sourceClass, sourceMethod); }
@Test public void testLog_6() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object[] params = new Object[] {}; fixture.log(logLevel, msg, params); } }