本文整理了Java中com.holonplatform.core.internal.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:com.holonplatform.core.internal.Logger
类名称:Logger
方法名:info
[英]Log a Level#INFORMATION type message.
[中]记录级别#信息类型消息。
代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-core
@Override
public void trace(final String title, final Supplier<String> json) {
if (isTraceEnabled()) {
LOGGER.info("(TRACE) " + ((title != null) ? title : "JSON") + ": \n" + json.get());
} else {
LOGGER.debug(() -> ((title != null) ? title : "JSON") + ": \n" + json.get());
}
}
代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-async
@Override
protected void onDatastoreInitialized(ClassLoader classLoader) {
LOGGER.info("MongoDB ASYNC Datastore initialized [Database name: " + getDatabaseName()
+ getDataContextId().map(id -> ", Data context id: " + id).orElse("") + "]");
}
代码示例来源:origin: com.holon-platform.mongo/holon-datastore-mongo-sync
@Override
protected void onDatastoreInitialized(ClassLoader classLoader) {
LOGGER.info("MongoDB SYNC Datastore initialized [Database name: " + getDatabaseName()
+ getDataContextId().map(id -> ", Data context id: " + id).orElse("") + "]");
}
代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-core
/**
* Configure the API listing endpoints, if the configuration is enabled
* @param application The JAX-RS application (not null)
* @return The API endpoint definitions
*/
protected List<ApiEndpointDefinition> configureEndpoints(A application) {
// check disabled
if (configurationProperties.isEnabled()) {
return registerEndpoints(application);
} else {
LOGGER.info("Swagger API endpoints configuration is disabled.");
return Collections.emptyList();
}
}
代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-v2
@Bean
@Order(Integer.MAX_VALUE - 100)
public static ApplicationListener<ContextRefreshedEvent> jaxrsApiEndpointsDefinitionsV2InitializerApplicationListenerOnContextRefresh() {
return event -> {
API_ENDPOINT_DEFINITIONS
.getOrDefault(event.getApplicationContext().getClassLoader(), Collections.emptyList())
.forEach(d -> {
if (d.init()) {
LOGGER.info("Swagger V2 endpoint definition [" + d.getContextId() + "] initialized.");
}
});
};
}
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin-flow-spring
@Override
public void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry registry) {
if (!annotationMetadata.isAnnotated(EnableNavigator.class.getName())) {
// ignore call from sub classes
return;
}
// register UI-scoped Navigator bean definition
GenericBeanDefinition beanDefinition = new GenericBeanDefinition();
beanDefinition.setBeanClass(DefaultNavigator.class);
beanDefinition.setScope(VaadinUIScope.VAADIN_UI_SCOPE_NAME);
beanDefinition.setAutowireCandidate(true);
registry.registerBeanDefinition(Navigator.CONTEXT_KEY, beanDefinition);
LOGGER.info("UI scoped Navigator registered");
}
代码示例来源:origin: com.holon-platform.jaxrs/holon-jaxrs-swagger-v2
@Override
protected void registerEndpoint(A application, ApiEndpointDefinition endpoint) {
registerEndpoint(application, endpoint.getEndpointClass());
// log
final String path = getApplicationPath(application).map(ap -> {
StringBuilder sb = new StringBuilder();
if (!ap.startsWith("/")) {
sb.append("/");
}
sb.append(ap);
if (!endpoint.getPath().startsWith("/") && !ap.endsWith("/")) {
sb.append("/");
}
if (endpoint.getPath().startsWith("/")) {
if (endpoint.getPath().length() > 1) {
sb.append(endpoint.getPath().substring(1));
}
} else {
sb.append(endpoint.getPath());
}
return sb.toString();
}).orElseGet(() -> endpoint.getPath());
LOGGER.info("Registered Swagger V2 endpoint type [" + endpoint.getType() + "] to path [" + path
+ "] bound to API context id: [" + endpoint.getContextId() + "] with scanner type ["
+ endpoint.getScannerType() + "]");
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin-spring
LOGGER.info("SpringViewClassProvider: Detecting View classes");
final String[] viewBeanNames = applicationContext.getBeanNamesForAnnotation(SpringView.class);
for (String beanName : viewBeanNames) {
代码示例来源:origin: com.holon-platform.jdbc/holon-jdbc-spring
log.append("\"");
LOGGER.info(log.toString());
代码示例来源:origin: com.holon-platform.jdbc/holon-jdbc-spring
log.append("\"");
LOGGER.info(log.toString());
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin-spring
if (viewName != null) {
getActuator().setDefaultViewName(viewName);
LOGGER.info("Configured default view " + type.getName() + " with name: " + viewName);
LOGGER.info("Configured error view: " + type.getName());
LOGGER.info("Configured access denied view: " + type.getName());
代码示例来源:origin: com.holon-platform.jpa/holon-datastore-jpa-spring
logger.info(log.toString());
代码示例来源:origin: com.holon-platform.jpa/holon-datastore-jpa-spring
logger.info(log.toString());
log.append("\"");
logger.info(log.toString());
内容来源于网络,如有侵权,请联系作者删除!