本文整理了Java中freemarker.log.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:freemarker.log.Logger
类名称:Logger
方法名:info
[英]Logs an informational message.
[中]记录一条信息性消息。
代码示例来源:origin: org.freemarker/freemarker
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.freemarker/freemarker
private static ExpressionFactory tryExpressionFactoryImplementation(String packagePrefix) {
String className = packagePrefix + ".el.ExpressionFactoryImpl";
try {
Class cl = ClassUtil.forName(className);
if (ExpressionFactory.class.isAssignableFrom(cl)) {
LOG.info("Using " + className + " as implementation of " +
ExpressionFactory.class.getName());
return (ExpressionFactory) cl.newInstance();
}
LOG.warn("Class " + className + " does not implement " +
ExpressionFactory.class.getName());
} catch (ClassNotFoundException e) {
} catch (Exception e) {
LOG.error("Failed to instantiate " + className, e);
}
return null;
}
代码示例来源:origin: org.freemarker/freemarker
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
"] in static model for " + clazz.getName());
代码示例来源:origin: org.freemarker/freemarker
LOG.info("Failed to check if finetuneMethodAppearance is overidden in " + thisClass.getName()
+ "; acting like if it was, but this way it won't utilize the shared class introspection "
+ "cache.",
代码示例来源:origin: org.freemarker/freemarker-gae
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
private static ExpressionFactory tryExpressionFactoryImplementation(String packagePrefix) {
String className = packagePrefix + ".el.ExpressionFactoryImpl";
try {
Class cl = ClassUtil.forName(className);
if (ExpressionFactory.class.isAssignableFrom(cl)) {
LOG.info("Using " + className + " as implementation of " +
ExpressionFactory.class.getName());
return (ExpressionFactory) cl.newInstance();
}
LOG.warn("Class " + className + " does not implement " +
ExpressionFactory.class.getName());
} catch (ClassNotFoundException e) {
} catch (Exception e) {
LOG.error("Failed to instantiate " + className, e);
}
return null;
}
代码示例来源:origin: org.freemarker/freemarker-gae
private static ExpressionFactory tryExpressionFactoryImplementation(String packagePrefix) {
String className = packagePrefix + ".el.ExpressionFactoryImpl";
try {
Class cl = ClassUtil.forName(className);
if (ExpressionFactory.class.isAssignableFrom(cl)) {
LOG.info("Using " + className + " as implementation of " +
ExpressionFactory.class.getName());
return (ExpressionFactory) cl.newInstance();
}
LOG.warn("Class " + className + " does not implement " +
ExpressionFactory.class.getName());
} catch (ClassNotFoundException e) {
} catch (Exception e) {
LOG.error("Failed to instantiate " + className, e);
}
return null;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
private static ExpressionFactory tryExpressionFactoryImplementation(String packagePrefix) {
String className = packagePrefix + ".el.ExpressionFactoryImpl";
try {
Class cl = ClassUtil.forName(className);
if(ExpressionFactory.class.isAssignableFrom(cl)) {
logger.info("Using " + className + " as implementation of " +
ExpressionFactory.class.getName());
return (ExpressionFactory)cl.newInstance();
}
logger.warn("Class " + className + " does not implement " +
ExpressionFactory.class.getName());
}
catch(ClassNotFoundException e) {
}
catch(Exception e) {
logger.error("Failed to instantiate " + className, e);
}
return null;
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
private void introspectClassInternal(Class clazz)
{
String className = clazz.getName();
if(cachedClassNames.contains(className))
{
if(logger.isInfoEnabled())
{
logger.info("Detected a reloaded class [" + className +
"]. Clearing BeansWrapper caches.");
}
// Class reload detected, throw away caches
classCache.clear();
cachedClassNames = new HashSet();
synchronized(this)
{
modelCache.clearCache();
}
staticModels.clearCache();
if(enumModels != null) {
enumModels.clearCache();
}
}
classCache.put(clazz, populateClassMap(clazz));
cachedClassNames.add(className);
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
logger.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
"] in static model for " + clazz.getName());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
"] in static model for " + clazz.getName());
代码示例来源:origin: org.freemarker/freemarker-gae
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
"] in static model for " + clazz.getName());
代码示例来源:origin: bedatadriven/activityinfo
@Override
public List<AdminGeo> getGeometries(int adminLevelId) {
try {
List<AdminGeo> list = Lists.newArrayList();
DataInputStream in = new DataInputStream(
openWkb(adminLevelId));
WKBReader wkbReader = new WKBReader(geometryFactory);
int count = in.readInt();
for (int i = 0; i != count; ++i) {
int id = in.readInt();
LOGGER.info("Reading geometry for admin entity " + id);
Geometry geometry = wkbReader.read(new DataInputInStream(in));
list.add(new AdminGeo(id, geometry));
}
return list;
} catch (IOException | ParseException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.freemarker/freemarker-gae
LOG.info("Failed to check if finetuneMethodAppearance is overidden in " + thisClass.getName()
+ "; acting like if it was, but this way it won't utilize the shared class introspection "
+ "cache.",
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
LOG.info("Failed to check if finetuneMethodAppearance is overidden in " + thisClass.getName()
+ "; acting like if it was, but this way it won't utilize the shared class introspection "
+ "cache.",
内容来源于网络,如有侵权,请联系作者删除!