本文整理汇总了Java中org.apache.uima.util.Logger类的典型用法代码示例。如果您正苦于以下问题:Java Logger类的具体用法?Java Logger怎么用?Java Logger使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Logger类属于org.apache.uima.util包,在下文中一共展示了Logger类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doLog
import org.apache.uima.util.Logger; //导入依赖的package包/类
private static void doLog(org.slf4j.Logger logger, Level level, String msg) {
switch (level.toInteger()) {
case Level.OFF_INT:
break;
case Level.SEVERE_INT:
logger.error(msg);
break;
case Level.WARNING_INT:
logger.warn(msg);
break;
case Level.INFO_INT:
case Level.CONFIG_INT:
logger.info(msg);
break;
case Level.FINE_INT:
logger.debug(msg);
break;
default:
logger.trace(msg);
}
}
示例2: error
import org.apache.uima.util.Logger; //导入依赖的package包/类
private static void error(String message) throws Exception {
Logger logger = UimaContextFactory.createUimaContext().getLogger();
logger.log(
Level.SEVERE,
String.format(
"%s\nusage: java %s input-file-or-dir [output-dir]",
TimeMlAnnotate.class.getName(),
message));
System.exit(1);
}
示例3: NewsleakStatusCallbackListener
import org.apache.uima.util.Logger; //导入依赖的package包/类
public NewsleakStatusCallbackListener(Logger logger) {
super();
this.logger = logger;
}
示例4: getInstance
import org.apache.uima.util.Logger; //导入依赖的package包/类
public static synchronized Logger getInstance(Class<?> component) {
return new Slf4jLoggerImpl(component);
}
示例5: setLogger
import org.apache.uima.util.Logger; //导入依赖的package包/类
public void setLogger(Logger aLogger)
{
logger = aLogger;
}
示例6: getLogger
import org.apache.uima.util.Logger; //导入依赖的package包/类
public Logger getLogger()
{
return logger;
}
示例7: getLogger
import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public Logger getLogger() {
// TODO Auto-generated method stub
return null;
}
示例8: StreamHandlerThread
import org.apache.uima.util.Logger; //导入依赖的package包/类
public StreamHandlerThread(InputStream stream, Logger logger) {
reader = new BufferedReader(new InputStreamReader(stream));
this.logger = logger;
}
示例9: error
import org.apache.uima.util.Logger; //导入依赖的package包/类
private static void error(String message) throws Exception {
Logger logger = UimaContextFactory.createUimaContext().getLogger();
logger.log(Level.SEVERE, String.format("%s\nusage: "
+ "VerbClauseTemporalAnnotate input-file-or-dir [output-dir]", message));
System.exit(1);
}
示例10: error
import org.apache.uima.util.Logger; //导入依赖的package包/类
private static void error(String message) throws Exception {
Logger logger = UimaContextFactory.createUimaContext().getLogger();
logger.log(Level.SEVERE, String.format("%s\nusage: "
+ "VerbClauseTemporalMain timebank-dir treebank-dir", message));
System.exit(1);
}
示例11: getInstance
import org.apache.uima.util.Logger; //导入依赖的package包/类
public static synchronized Logger getInstance(Class<?> component) {
return new UIMASlf4jWrapperLogger(component);
}
示例12: getLogger
import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public Logger getLogger() {
throw new UnsupportedOperationException();
}
示例13: setLogger
import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public void setLogger(Logger aLogger) {
throw new UnsupportedOperationException();
}