com.holonplatform.core.internal.Logger.info()方法的使用及代码示例

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

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

Logger.info介绍

[英]Log a Level#INFORMATION type message.
[中]记录级别#信息类型消息。

代码示例

代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-core

  1. @Override
  2. public void trace(final String title, final Supplier<String> json) {
  3. if (isTraceEnabled()) {
  4. LOGGER.info("(TRACE) " + ((title != null) ? title : "JSON") + ": \n" + json.get());
  5. } else {
  6. LOGGER.debug(() -> ((title != null) ? title : "JSON") + ": \n" + json.get());
  7. }
  8. }

代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-async

  1. @Override
  2. protected void onDatastoreInitialized(ClassLoader classLoader) {
  3. LOGGER.info("MongoDB ASYNC Datastore initialized [Database name: " + getDatabaseName()
  4. + getDataContextId().map(id -> ", Data context id: " + id).orElse("") + "]");
  5. }

代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-sync

  1. @Override
  2. protected void onDatastoreInitialized(ClassLoader classLoader) {
  3. LOGGER.info("MongoDB SYNC Datastore initialized [Database name: " + getDatabaseName()
  4. + getDataContextId().map(id -> ", Data context id: " + id).orElse("") + "]");
  5. }

代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-core

  1. /**
  2. * Configure the API listing endpoints, if the configuration is enabled
  3. * @param application The JAX-RS application (not null)
  4. * @return The API endpoint definitions
  5. */
  6. protected List<ApiEndpointDefinition> configureEndpoints(A application) {
  7. // check disabled
  8. if (configurationProperties.isEnabled()) {
  9. return registerEndpoints(application);
  10. } else {
  11. LOGGER.info("Swagger API endpoints configuration is disabled.");
  12. return Collections.emptyList();
  13. }
  14. }

代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-v2

  1. @Bean
  2. @Order(Integer.MAX_VALUE - 100)
  3. public static ApplicationListener<ContextRefreshedEvent> jaxrsApiEndpointsDefinitionsV2InitializerApplicationListenerOnContextRefresh() {
  4. return event -> {
  5. API_ENDPOINT_DEFINITIONS
  6. .getOrDefault(event.getApplicationContext().getClassLoader(), Collections.emptyList())
  7. .forEach(d -> {
  8. if (d.init()) {
  9. LOGGER.info("Swagger V2 endpoint definition [" + d.getContextId() + "] initialized.");
  10. }
  11. });
  12. };
  13. }

代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin-flow-spring

  1. @Override
  2. public void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry registry) {
  3. if (!annotationMetadata.isAnnotated(EnableNavigator.class.getName())) {
  4. // ignore call from sub classes
  5. return;
  6. }
  7. // register UI-scoped Navigator bean definition
  8. GenericBeanDefinition beanDefinition = new GenericBeanDefinition();
  9. beanDefinition.setBeanClass(DefaultNavigator.class);
  10. beanDefinition.setScope(VaadinUIScope.VAADIN_UI_SCOPE_NAME);
  11. beanDefinition.setAutowireCandidate(true);
  12. registry.registerBeanDefinition(Navigator.CONTEXT_KEY, beanDefinition);
  13. LOGGER.info("UI scoped Navigator registered");
  14. }

代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-v2

  1. @Override
  2. protected void registerEndpoint(A application, ApiEndpointDefinition endpoint) {
  3. registerEndpoint(application, endpoint.getEndpointClass());
  4. // log
  5. final String path = getApplicationPath(application).map(ap -> {
  6. StringBuilder sb = new StringBuilder();
  7. if (!ap.startsWith("/")) {
  8. sb.append("/");
  9. }
  10. sb.append(ap);
  11. if (!endpoint.getPath().startsWith("/") && !ap.endsWith("/")) {
  12. sb.append("/");
  13. }
  14. if (endpoint.getPath().startsWith("/")) {
  15. if (endpoint.getPath().length() > 1) {
  16. sb.append(endpoint.getPath().substring(1));
  17. }
  18. } else {
  19. sb.append(endpoint.getPath());
  20. }
  21. return sb.toString();
  22. }).orElseGet(() -> endpoint.getPath());
  23. LOGGER.info("Registered Swagger V2 endpoint type [" + endpoint.getType() + "] to path [" + path
  24. + "] bound to API context id: [" + endpoint.getContextId() + "] with scanner type ["
  25. + endpoint.getScannerType() + "]");
  26. }

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin-spring

  1. LOGGER.info("SpringViewClassProvider: Detecting View classes");
  2. final String[] viewBeanNames = applicationContext.getBeanNamesForAnnotation(SpringView.class);
  3. for (String beanName : viewBeanNames) {

代码示例来源:origin: com.holon-platform.jdbc/holon-jdbc-spring

  1. log.append("\"");
  2. LOGGER.info(log.toString());

代码示例来源:origin: com.holon-platform.jdbc/holon-jdbc-spring

  1. log.append("\"");
  2. LOGGER.info(log.toString());

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin-spring

  1. if (viewName != null) {
  2. getActuator().setDefaultViewName(viewName);
  3. LOGGER.info("Configured default view " + type.getName() + " with name: " + viewName);
  4. LOGGER.info("Configured error view: " + type.getName());
  5. LOGGER.info("Configured access denied view: " + type.getName());

代码示例来源:origin: com.holon-platform.jpa/holon-datastore-jpa-spring

  1. logger.info(log.toString());

代码示例来源:origin: com.holon-platform.jpa/holon-datastore-jpa-spring

  1. logger.info(log.toString());
  2. log.append("\"");
  3. logger.info(log.toString());

相关文章