本文整理了Java中org.tinygroup.logger.Logger.log()
方法的一些代码示例,展示了Logger.log()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.log()
方法的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称:Logger
方法名:log
[英]通过国际化方式进行记录
[中]通过国际化方式进行记录
代码示例来源:origin: org.tinygroup/service
public void removeService(ServiceRegistry serviceRegistry) {
List<String> classNames = getClassNames();// 这个由子类提供
for (String className : classNames) {
try {
Class<?> clazz = Class.forName(className);
Annotation annotation = clazz
.getAnnotation(ServiceComponent.class);
if (annotation != null) {
removeServices(clazz, serviceRegistry);
}
} catch (Exception e) {
// TODO log ClassNotFoundException
logger.log(LogLevel.ERROR, "service.loadServiceException",
className);
}
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.service
public void removeService(ServiceRegistry serviceRegistry, ClassLoader classLoader) {
List<String> classNames = getClassNames();// 这个由子类提供
for (String className : classNames) {
try {
Class<?> clazz = classLoader.loadClass(className);
Annotation annotation = clazz
.getAnnotation(ServiceComponent.class);
if (annotation != null) {
removeServices(clazz, serviceRegistry);
}
} catch (Exception e) {
LOGGER.log(LogLevel.ERROR, "service.loadServiceException",
className);
}
}
}
代码示例来源:origin: org.tinygroup/weblayer
public void process() {
TinyProcessorManager tinyProcessorManager = SpringUtil
.getBean(TinyProcessorManager.TINY_PROCESSOR_MANAGER);
TinyProcessorConfigManager configManager = SpringUtil
.getBean(TinyProcessorConfigManager.TINY_PROCESSOR_CONFIGMANAGER);
for (FileObject fileObject : fileObjects) {
logger.log(LogLevel.INFO, "找到tiny-processor描述文件:<{}>",
fileObject.getAbsolutePath());
configManager.addConfig(fileObject);
}
tinyProcessorManager.setConfigManager(configManager);
}
代码示例来源:origin: org.tinygroup/weblayer
public void process() {
TinyFilterManager tinyFilterManager = SpringUtil
.getBean(TinyFilterManager.TINY_FILTER_MANAGER);
TinyFiterConfigManager configManager = SpringUtil
.getBean(TinyFiterConfigManager.TINY_FILTER_CONFIGMANAGER);
for (FileObject fileObject : fileObjects) {
logger.log(LogLevel.INFO, "找到tiny-filter描述文件:<{}>",
fileObject.getAbsolutePath());
configManager.addConfig(fileObject);
}
tinyFilterManager.setConfigManager(configManager);
}
代码示例来源:origin: org.tinygroup/org.tinygroup.imda
public void callService(Context context, String serviceId, String parameters) {
logger.log(LogLevel.INFO, "开始服务调用:[服务ID:{},参数:{}]", serviceId,
parameters);
String requestName = null;
logger.log(LogLevel.INFO, "完成服务调用:[服务ID:{},参数:{}]", serviceId,
parameters);
内容来源于网络,如有侵权,请联系作者删除!