fathom.utils.Util.logSetting()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(9.5k)|赞(0)|评价(0)|浏览(186)

本文整理了Java中fathom.utils.Util.logSetting()方法的一些代码示例,展示了Util.logSetting()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.logSetting()方法的具体详情如下:
包路径:fathom.utils.Util
类名称:Util
方法名:logSetting

Util.logSetting介绍

暂无

代码示例

代码示例来源:origin: gitblit/fathom

  1. protected void logCacheSettings(Logger log) {
  2. Util.logSetting(log, "caching", accountCache != null);
  3. Util.logSetting(log, "cacheTtl (mins)", cacheTtl);
  4. Util.logSetting(log, "cacheMax (accounts)", cacheMax);
  5. }

代码示例来源:origin: com.gitblit.fathom/fathom-security

  1. protected void logCacheSettings(Logger log) {
  2. Util.logSetting(log, "caching", accountCache != null);
  3. Util.logSetting(log, "cacheTtl (mins)", cacheTtl);
  4. Util.logSetting(log, "cacheMax (accounts)", cacheMax);
  5. }

代码示例来源:origin: com.gitblit.fathom/fathom-security-ldap

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "url", ldapUrl);
  5. Util.logSetting(log, "username", ldapUsername);
  6. Util.logSetting(log, "password", ldapPassword);
  7. Util.logSetting(log, "bindPattern", ldapBindPattern);
  8. Util.logSetting(log, "accountBase", accountBase);
  9. Util.logSetting(log, "accountPattern", accountPattern);
  10. Util.logSetting(log, "nameMapping", nameMapping);
  11. Util.logSetting(log, "emailMapping", emailMapping);
  12. Util.logSetting(log, "groupBase", groupBase);
  13. Util.logSetting(log, "groupMemberPattern", groupMemberPattern);
  14. Util.logSetting(log, "adminGroups", adminGroups);
  15. super.logCacheSettings(log);
  16. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "url", ldapUrl);
  5. Util.logSetting(log, "username", ldapUsername);
  6. Util.logSetting(log, "password", ldapPassword);
  7. Util.logSetting(log, "bindPattern", ldapBindPattern);
  8. Util.logSetting(log, "accountBase", accountBase);
  9. Util.logSetting(log, "accountPattern", accountPattern);
  10. Util.logSetting(log, "nameMapping", nameMapping);
  11. Util.logSetting(log, "emailMapping", emailMapping);
  12. Util.logSetting(log, "groupBase", groupBase);
  13. Util.logSetting(log, "groupMemberPattern", groupMemberPattern);
  14. Util.logSetting(log, "adminGroups", adminGroups);
  15. super.logCacheSettings(log);
  16. }

代码示例来源:origin: gitblit/fathom

  1. public static void logSetting(Logger log, Enum<?> name, Object value) {
  2. logSetting(log, name.toString(), value);
  3. }

代码示例来源:origin: com.gitblit.fathom/fathom-security-htpasswd

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "file", file);
  5. Util.logSetting(log, "allowClearPasswords", isAllowClearTextPasswords);
  6. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "file", file);
  5. Util.logSetting(log, "allowClearPasswords", isAllowClearTextPasswords);
  6. }

代码示例来源:origin: com.gitblit.fathom/fathom-security

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "file", realmFile);
  5. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "file", realmFile);
  5. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "defaultDomain", defaultDomain);
  5. Util.logSetting(log, "allowGuests", allowGuests);
  6. Util.logSetting(log, "adminGroups", adminGroups);
  7. super.logCacheSettings(log);
  8. IWindowsComputer computer = waffle.getCurrentComputer();
  9. log.debug("Windows realm information:");
  10. Util.logSetting(log, "name", computer.getComputerName());
  11. Util.logSetting(log, "status", describeJoinStatus(computer.getJoinStatus()));
  12. Util.logSetting(log, "memberOf", computer.getMemberOf());
  13. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "url", redisUrl);
  5. Util.logSetting(log, "password", redisPassword);
  6. Util.logSetting(log, "passwordMapping", passwordMapping);
  7. Util.logSetting(log, "nameMapping", nameMapping);
  8. Util.logSetting(log, "emailMapping", emailMapping);
  9. Util.logSetting(log, "roleMapping", roleMapping);
  10. super.logCacheSettings(log);
  11. try {
  12. this.pool = new JedisPool(redisUrl);
  13. } catch (JedisException e) {
  14. throw new FathomException("Failed to create a Redis pool!", e);
  15. }
  16. if (!Strings.isNullOrEmpty(startScript)) {
  17. executeScript(startScript);
  18. }
  19. }

代码示例来源:origin: gitblit/fathom

  1. @Override
  2. public void start() {
  3. log.debug("Realm '{}' configuration:", getRealmName());
  4. Util.logSetting(log, "serviceName", serviceName);
  5. super.logCacheSettings(log);
  6. }

代码示例来源:origin: com.gitblit.fathom/fathom-security-jdbc

  1. Util.logSetting(log, "url", jdbcUrl);
  2. Util.logSetting(log, "username", jdbcUsername);
  3. Util.logSetting(log, "password", jdbcPassword);
  4. Util.logSetting(log, "accountQuery", accountQuery);
  5. Util.logSetting(log, "passwordMapping", passwordMapping);
  6. Util.logSetting(log, "nameMapping", nameMapping);
  7. Util.logSetting(log, "emailMapping", emailMapping);
  8. Util.logSetting(log, "roleMapping", roleMapping);
  9. Util.logSetting(log, "permissionMapping", permissionMapping);
  10. Util.logSetting(log, "accountRolesQuery", accountRolesQuery);
  11. Util.logSetting(log, "accountPermissionsQuery", accountPermissionsQuery);
  12. Util.logSetting(log, "definedRolesQuery", definedRolesQuery);
  13. Util.logSetting(log, "startScript", startScript);
  14. Util.logSetting(log, "stopScript", stopScript);
  15. super.logCacheSettings(log);

代码示例来源:origin: gitblit/fathom

  1. Util.logSetting(log, "url", jdbcUrl);
  2. Util.logSetting(log, "username", jdbcUsername);
  3. Util.logSetting(log, "password", jdbcPassword);
  4. Util.logSetting(log, "accountQuery", accountQuery);
  5. Util.logSetting(log, "passwordMapping", passwordMapping);
  6. Util.logSetting(log, "nameMapping", nameMapping);
  7. Util.logSetting(log, "emailMapping", emailMapping);
  8. Util.logSetting(log, "roleMapping", roleMapping);
  9. Util.logSetting(log, "permissionMapping", permissionMapping);
  10. Util.logSetting(log, "accountRolesQuery", accountRolesQuery);
  11. Util.logSetting(log, "accountPermissionsQuery", accountPermissionsQuery);
  12. Util.logSetting(log, "definedRolesQuery", definedRolesQuery);
  13. Util.logSetting(log, "startScript", startScript);
  14. Util.logSetting(log, "stopScript", stopScript);
  15. super.logCacheSettings(log);

代码示例来源:origin: gitblit/fathom

  1. } else {
  2. log.debug("Keycloak '{}' configuration:", getRealmName());
  3. Util.logSetting(log, "realm", keycloakConfig.getRealm());
  4. Util.logSetting(log, "resource", keycloakConfig.getResource());
  5. Util.logSetting(log, "use-resource-role-mappings", keycloakConfig.isUseResourceRoleMappings());
  6. Util.logSetting(log, "realm-public-key", keycloakConfig.getRealmKey().substring(0, 8) + "..." + keycloakConfig.getRealmKey().substring(keycloakConfig.getRealmKey().length() - 8));
  7. Util.logSetting(log, "server-auth-url", keycloakConfig.getAuthServerUrl());
  8. Util.logSetting(log, "enable-basic-auth", keycloakConfig.isEnableBasicAuth());
  9. Util.logSetting(log, "bearer-only", keycloakConfig.isBearerOnly());
  10. Util.logSetting(log, "ssl-required", keycloakConfig.getSslRequired());
  11. Util.logSetting(log, "expose-token", keycloakConfig.isExposeToken());
  12. Util.logSetting(log, "public-client", keycloakConfig.isPublicClient());
  13. Util.logSetting(log, "allow-any-hostname", keycloakConfig.isAllowAnyHostname());
  14. Util.logSetting(log, "cors", keycloakConfig.isCors());
  15. Util.logSetting(log, "cors-max-age", keycloakConfig.getCorsMaxAge());
  16. Util.logSetting(log, "cors-methods", keycloakConfig.getCorsAllowedMethods());
  17. Util.logSetting(log, "cors-allowed-headers", keycloakConfig.getCorsAllowedHeaders());
  18. Util.logSetting(log, "token-store", keycloakConfig.getTokenStore());
  19. Util.logSetting(log, "always-refresh-token", keycloakConfig.isAlwaysRefreshToken());
  20. Util.logSetting(log, "connection-pool-size", keycloakConfig.getConnectionPoolSize());
  21. Util.logSetting(log, "register-node-period", keycloakConfig.getRegisterNodePeriod());
  22. Util.logSetting(log, "register-node-at-startup", keycloakConfig.isRegisterNodeAtStartup());
  23. Util.logSetting(log, "disable-trust-manager", keycloakConfig.isDisableTrustManager());
  24. Util.logSetting(log, "truststore", keycloakConfig.getTruststore());

代码示例来源:origin: gitblit/fathom

  1. String osVersion = System.getProperty("os.version");
  2. log.info("Bootstrapping {} ({})", settings.getApplicationName(), settings.getApplicationVersion());
  3. Util.logSetting(log, "Fathom", Constants.getVersion());
  4. Util.logSetting(log, "Mode", settings.getMode().toString());
  5. Util.logSetting(log, "Operating System", String.format("%s (%s)", osName, osVersion));
  6. Util.logSetting(log, "Available processors", Runtime.getRuntime().availableProcessors());
  7. Util.logSetting(log, "Available heap", (Runtime.getRuntime().maxMemory() / (1024 * 1024)) + " MB");
  8. Util.logSetting(log, "JVM timezone", String.format("%s (%s)", TimeZone.getDefault().getID(), offset));
  9. Util.logSetting(log, "JVM locale", Locale.getDefault());

相关文章