org.jboss.logging.Logger.errorv()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(191)

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

Logger.errorv介绍

[英]Issue a log message with a level of ERROR using java.text.MessageFormat-style formatting.
[中]使用java发出错误级别的日志消息。文本MessageFormat样式格式化。

代码示例

代码示例来源:origin: org.keycloak/keycloak-forms-common-freemarker

  1. private Theme findTheme(String name, Theme.Type type) {
  2. for (ThemeProvider p : getProviders()) {
  3. if (p.hasTheme(name, type)) {
  4. try {
  5. return p.getTheme(name, type);
  6. } catch (IOException e) {
  7. log.errorv(e, p.getClass() + " failed to load theme, type={0}, name={1}", type, name);
  8. }
  9. }
  10. }
  11. return null;
  12. }

代码示例来源:origin: org.keycloak/keycloak-tomcat-core-adapter

  1. private static InputStream getConfigInputStream(Context context) {
  2. InputStream is = getJSONFromServletContext(context.getServletContext());
  3. if (is == null) {
  4. String path = context.getServletContext().getInitParameter("keycloak.config.file");
  5. if (path == null) {
  6. log.trace("**** using /WEB-INF/keycloak.json");
  7. is = context.getServletContext().getResourceAsStream("/WEB-INF/keycloak.json");
  8. } else {
  9. try {
  10. is = new FileInputStream(path);
  11. } catch (FileNotFoundException e) {
  12. log.errorv("NOT FOUND {0}", path);
  13. throw new RuntimeException(e);
  14. }
  15. }
  16. }
  17. return is;
  18. }

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

  1. private static InputStream getConfigInputStream(Context context) {
  2. InputStream is = getJSONFromServletContext(context.getServletContext());
  3. if (is == null) {
  4. String path = context.getServletContext().getInitParameter("keycloak.config.file");
  5. if (path == null) {
  6. log.trace("**** using /WEB-INF/keycloak.json");
  7. is = context.getServletContext().getResourceAsStream("/WEB-INF/keycloak.json");
  8. } else {
  9. try {
  10. is = new FileInputStream(path);
  11. } catch (FileNotFoundException e) {
  12. log.errorv("NOT FOUND {0}", path);
  13. throw new RuntimeException(e);
  14. }
  15. }
  16. }
  17. return is;
  18. }

代码示例来源:origin: org.keycloak/keycloak-saml-tomcat-adapter-core

  1. private static InputStream getConfigInputStream(Context context) {
  2. InputStream is = getConfigFromServletContext(context.getServletContext());
  3. if (is == null) {
  4. String path = context.getServletContext().getInitParameter("keycloak.config.file");
  5. if (path == null) {
  6. log.trace("**** using /WEB-INF/keycloak-saml.xml");
  7. is = context.getServletContext().getResourceAsStream("/WEB-INF/keycloak-saml.xml");
  8. } else {
  9. try {
  10. is = new FileInputStream(path);
  11. } catch (FileNotFoundException e) {
  12. log.errorv("NOT FOUND {0}", path);
  13. throw new RuntimeException(e);
  14. }
  15. }
  16. }
  17. return is;
  18. }

代码示例来源:origin: org.keycloak/keycloak-forms-common-freemarker

  1. @Override
  2. public Theme getTheme(String name, Theme.Type type) throws IOException {
  3. if (name == null) {
  4. name = defaultTheme;
  5. }
  6. if (themeCache != null) {
  7. ExtendingThemeManagerFactory.ThemeKey key = ExtendingThemeManagerFactory.ThemeKey.get(name, type);
  8. Theme theme = themeCache.get(key);
  9. if (theme == null) {
  10. theme = loadTheme(name, type);
  11. if (theme == null) {
  12. theme = loadTheme("keycloak", type);
  13. if (theme == null) {
  14. theme = loadTheme("base", type);
  15. }
  16. log.errorv("Failed to find {0} theme {1}, using built-in themes", type, name);
  17. } else if (themeCache.putIfAbsent(key, theme) != null) {
  18. theme = themeCache.get(key);
  19. }
  20. }
  21. return theme;
  22. } else {
  23. return loadTheme(name, type);
  24. }
  25. }

代码示例来源:origin: org.keycloak/keycloak-saml-tomcat-adapter-core

  1. || ! Modifier.isPublic(addTokenStoreUpdatersMethod.getModifiers())
  2. || ! SessionIdMapperUpdater.class.isAssignableFrom(addTokenStoreUpdatersMethod.getReturnType())) {
  3. log.errorv("addTokenStoreUpdaters method in class {0} has to be public static. Ignoring class.", idMapperSessionUpdaterClass);
  4. return previousIdMapperUpdater;

代码示例来源:origin: org.keycloak/keycloak-model-jpa

  1. em.flush();
  2. } catch (RuntimeException e) {
  3. logger.errorv("Unable to delete client entity: {0} from realm {1}", client.getClientId(), realm.getName());
  4. throw e;

代码示例来源:origin: org.keycloak/keycloak-saml-tomcat-adapter-core

  1. log.infov("Using {0} to resolve Keycloak configuration on a per-request basis.", configResolverClass);
  2. } catch (Exception ex) {
  3. log.errorv("The specified resolver {0} could NOT be loaded. Keycloak is unconfigured and will deny all requests. Reason: {1}", configResolverClass, ex.getMessage());
  4. deploymentContext = new SamlDeploymentContext(new DefaultSamlDeployment());

代码示例来源:origin: org.keycloak/keycloak-tomcat-core-adapter

  1. log.debugv("Using {0} to resolve Keycloak configuration on a per-request basis.", configResolverClass);
  2. } catch (Exception ex) {
  3. log.errorv("The specified resolver {0} could NOT be loaded. Keycloak is unconfigured and will deny all requests. Reason: {1}", configResolverClass, ex.getMessage());
  4. deploymentContext = new AdapterDeploymentContext(new KeycloakDeployment());

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

  1. log.debugv("Using {0} to resolve Keycloak configuration on a per-request basis.", configResolverClass);
  2. } catch (Exception ex) {
  3. log.errorv("The specified resolver {0} could NOT be loaded. Keycloak is unconfigured and will deny all requests. Reason: {1}", configResolverClass, ex.getMessage());
  4. deploymentContext = new AdapterDeploymentContext(new KeycloakDeployment());

相关文章