本文整理了Java中fathom.utils.Util.logSetting()
方法的一些代码示例,展示了Util.logSetting()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.logSetting()
方法的具体详情如下:
包路径:fathom.utils.Util
类名称:Util
方法名:logSetting
暂无
代码示例来源:origin: gitblit/fathom
protected void logCacheSettings(Logger log) {
Util.logSetting(log, "caching", accountCache != null);
Util.logSetting(log, "cacheTtl (mins)", cacheTtl);
Util.logSetting(log, "cacheMax (accounts)", cacheMax);
}
代码示例来源:origin: com.gitblit.fathom/fathom-security
protected void logCacheSettings(Logger log) {
Util.logSetting(log, "caching", accountCache != null);
Util.logSetting(log, "cacheTtl (mins)", cacheTtl);
Util.logSetting(log, "cacheMax (accounts)", cacheMax);
}
代码示例来源:origin: com.gitblit.fathom/fathom-security-ldap
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "url", ldapUrl);
Util.logSetting(log, "username", ldapUsername);
Util.logSetting(log, "password", ldapPassword);
Util.logSetting(log, "bindPattern", ldapBindPattern);
Util.logSetting(log, "accountBase", accountBase);
Util.logSetting(log, "accountPattern", accountPattern);
Util.logSetting(log, "nameMapping", nameMapping);
Util.logSetting(log, "emailMapping", emailMapping);
Util.logSetting(log, "groupBase", groupBase);
Util.logSetting(log, "groupMemberPattern", groupMemberPattern);
Util.logSetting(log, "adminGroups", adminGroups);
super.logCacheSettings(log);
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "url", ldapUrl);
Util.logSetting(log, "username", ldapUsername);
Util.logSetting(log, "password", ldapPassword);
Util.logSetting(log, "bindPattern", ldapBindPattern);
Util.logSetting(log, "accountBase", accountBase);
Util.logSetting(log, "accountPattern", accountPattern);
Util.logSetting(log, "nameMapping", nameMapping);
Util.logSetting(log, "emailMapping", emailMapping);
Util.logSetting(log, "groupBase", groupBase);
Util.logSetting(log, "groupMemberPattern", groupMemberPattern);
Util.logSetting(log, "adminGroups", adminGroups);
super.logCacheSettings(log);
}
代码示例来源:origin: gitblit/fathom
public static void logSetting(Logger log, Enum<?> name, Object value) {
logSetting(log, name.toString(), value);
}
代码示例来源:origin: com.gitblit.fathom/fathom-security-htpasswd
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "file", file);
Util.logSetting(log, "allowClearPasswords", isAllowClearTextPasswords);
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "file", file);
Util.logSetting(log, "allowClearPasswords", isAllowClearTextPasswords);
}
代码示例来源:origin: com.gitblit.fathom/fathom-security
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "file", realmFile);
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "file", realmFile);
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "defaultDomain", defaultDomain);
Util.logSetting(log, "allowGuests", allowGuests);
Util.logSetting(log, "adminGroups", adminGroups);
super.logCacheSettings(log);
IWindowsComputer computer = waffle.getCurrentComputer();
log.debug("Windows realm information:");
Util.logSetting(log, "name", computer.getComputerName());
Util.logSetting(log, "status", describeJoinStatus(computer.getJoinStatus()));
Util.logSetting(log, "memberOf", computer.getMemberOf());
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "url", redisUrl);
Util.logSetting(log, "password", redisPassword);
Util.logSetting(log, "passwordMapping", passwordMapping);
Util.logSetting(log, "nameMapping", nameMapping);
Util.logSetting(log, "emailMapping", emailMapping);
Util.logSetting(log, "roleMapping", roleMapping);
super.logCacheSettings(log);
try {
this.pool = new JedisPool(redisUrl);
} catch (JedisException e) {
throw new FathomException("Failed to create a Redis pool!", e);
}
if (!Strings.isNullOrEmpty(startScript)) {
executeScript(startScript);
}
}
代码示例来源:origin: gitblit/fathom
@Override
public void start() {
log.debug("Realm '{}' configuration:", getRealmName());
Util.logSetting(log, "serviceName", serviceName);
super.logCacheSettings(log);
}
代码示例来源:origin: com.gitblit.fathom/fathom-security-jdbc
Util.logSetting(log, "url", jdbcUrl);
Util.logSetting(log, "username", jdbcUsername);
Util.logSetting(log, "password", jdbcPassword);
Util.logSetting(log, "accountQuery", accountQuery);
Util.logSetting(log, "passwordMapping", passwordMapping);
Util.logSetting(log, "nameMapping", nameMapping);
Util.logSetting(log, "emailMapping", emailMapping);
Util.logSetting(log, "roleMapping", roleMapping);
Util.logSetting(log, "permissionMapping", permissionMapping);
Util.logSetting(log, "accountRolesQuery", accountRolesQuery);
Util.logSetting(log, "accountPermissionsQuery", accountPermissionsQuery);
Util.logSetting(log, "definedRolesQuery", definedRolesQuery);
Util.logSetting(log, "startScript", startScript);
Util.logSetting(log, "stopScript", stopScript);
super.logCacheSettings(log);
代码示例来源:origin: gitblit/fathom
Util.logSetting(log, "url", jdbcUrl);
Util.logSetting(log, "username", jdbcUsername);
Util.logSetting(log, "password", jdbcPassword);
Util.logSetting(log, "accountQuery", accountQuery);
Util.logSetting(log, "passwordMapping", passwordMapping);
Util.logSetting(log, "nameMapping", nameMapping);
Util.logSetting(log, "emailMapping", emailMapping);
Util.logSetting(log, "roleMapping", roleMapping);
Util.logSetting(log, "permissionMapping", permissionMapping);
Util.logSetting(log, "accountRolesQuery", accountRolesQuery);
Util.logSetting(log, "accountPermissionsQuery", accountPermissionsQuery);
Util.logSetting(log, "definedRolesQuery", definedRolesQuery);
Util.logSetting(log, "startScript", startScript);
Util.logSetting(log, "stopScript", stopScript);
super.logCacheSettings(log);
代码示例来源:origin: gitblit/fathom
} else {
log.debug("Keycloak '{}' configuration:", getRealmName());
Util.logSetting(log, "realm", keycloakConfig.getRealm());
Util.logSetting(log, "resource", keycloakConfig.getResource());
Util.logSetting(log, "use-resource-role-mappings", keycloakConfig.isUseResourceRoleMappings());
Util.logSetting(log, "realm-public-key", keycloakConfig.getRealmKey().substring(0, 8) + "..." + keycloakConfig.getRealmKey().substring(keycloakConfig.getRealmKey().length() - 8));
Util.logSetting(log, "server-auth-url", keycloakConfig.getAuthServerUrl());
Util.logSetting(log, "enable-basic-auth", keycloakConfig.isEnableBasicAuth());
Util.logSetting(log, "bearer-only", keycloakConfig.isBearerOnly());
Util.logSetting(log, "ssl-required", keycloakConfig.getSslRequired());
Util.logSetting(log, "expose-token", keycloakConfig.isExposeToken());
Util.logSetting(log, "public-client", keycloakConfig.isPublicClient());
Util.logSetting(log, "allow-any-hostname", keycloakConfig.isAllowAnyHostname());
Util.logSetting(log, "cors", keycloakConfig.isCors());
Util.logSetting(log, "cors-max-age", keycloakConfig.getCorsMaxAge());
Util.logSetting(log, "cors-methods", keycloakConfig.getCorsAllowedMethods());
Util.logSetting(log, "cors-allowed-headers", keycloakConfig.getCorsAllowedHeaders());
Util.logSetting(log, "token-store", keycloakConfig.getTokenStore());
Util.logSetting(log, "always-refresh-token", keycloakConfig.isAlwaysRefreshToken());
Util.logSetting(log, "connection-pool-size", keycloakConfig.getConnectionPoolSize());
Util.logSetting(log, "register-node-period", keycloakConfig.getRegisterNodePeriod());
Util.logSetting(log, "register-node-at-startup", keycloakConfig.isRegisterNodeAtStartup());
Util.logSetting(log, "disable-trust-manager", keycloakConfig.isDisableTrustManager());
Util.logSetting(log, "truststore", keycloakConfig.getTruststore());
代码示例来源:origin: gitblit/fathom
String osVersion = System.getProperty("os.version");
log.info("Bootstrapping {} ({})", settings.getApplicationName(), settings.getApplicationVersion());
Util.logSetting(log, "Fathom", Constants.getVersion());
Util.logSetting(log, "Mode", settings.getMode().toString());
Util.logSetting(log, "Operating System", String.format("%s (%s)", osName, osVersion));
Util.logSetting(log, "Available processors", Runtime.getRuntime().availableProcessors());
Util.logSetting(log, "Available heap", (Runtime.getRuntime().maxMemory() / (1024 * 1024)) + " MB");
Util.logSetting(log, "JVM timezone", String.format("%s (%s)", TimeZone.getDefault().getID(), offset));
Util.logSetting(log, "JVM locale", Locale.getDefault());
内容来源于网络,如有侵权,请联系作者删除!