当前位置: 首页>>代码示例>>Java>>正文


Java Logger类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:textocat,项目名称:textokit-core,代码行数:22,代码来源:Slf4jLoggerImpl.java

示例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);
}
 
开发者ID:ClearTK,项目名称:cleartk,代码行数:11,代码来源:TimeMlAnnotate.java

示例3: NewsleakStatusCallbackListener

import org.apache.uima.util.Logger; //导入依赖的package包/类
public NewsleakStatusCallbackListener(Logger logger) {
	super();
	this.logger = logger;
}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:5,代码来源:NewsleakStatusCallbackListener.java

示例4: getInstance

import org.apache.uima.util.Logger; //导入依赖的package包/类
public static synchronized Logger getInstance(Class<?> component) {
    return new Slf4jLoggerImpl(component);
}
 
开发者ID:textocat,项目名称:textokit-core,代码行数:4,代码来源:Slf4jLoggerImpl.java

示例5: setLogger

import org.apache.uima.util.Logger; //导入依赖的package包/类
public void setLogger(Logger aLogger)
{
    logger = aLogger;
}
 
开发者ID:webanno,项目名称:webanno,代码行数:5,代码来源:TeiReader.java

示例6: getLogger

import org.apache.uima.util.Logger; //导入依赖的package包/类
public Logger getLogger()
{
    return logger;
}
 
开发者ID:webanno,项目名称:webanno,代码行数:5,代码来源:TeiReader.java

示例7: getLogger

import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public Logger getLogger() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:HeidelTime,项目名称:heideltime,代码行数:6,代码来源:StandaloneConfigContext.java

示例8: StreamHandlerThread

import org.apache.uima.util.Logger; //导入依赖的package包/类
public StreamHandlerThread(InputStream stream, Logger logger) {
  reader = new BufferedReader(new InputStreamReader(stream));
  this.logger = logger;
}
 
开发者ID:ClearTK,项目名称:cleartk,代码行数:5,代码来源:StreamHandlerThread.java

示例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);
}
 
开发者ID:ClearTK,项目名称:cleartk,代码行数:7,代码来源:VerbClauseTemporalAnnotate.java

示例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);
}
 
开发者ID:ClearTK,项目名称:cleartk,代码行数:7,代码来源:VerbClauseTemporalTrain.java

示例11: getInstance

import org.apache.uima.util.Logger; //导入依赖的package包/类
public static synchronized Logger getInstance(Class<?> component) {
	return new UIMASlf4jWrapperLogger(component);
}
 
开发者ID:termsuite,项目名称:termsuite-core,代码行数:4,代码来源:UIMASlf4jWrapperLogger.java

示例12: getLogger

import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public Logger getLogger() {
	throw new UnsupportedOperationException();
}
 
开发者ID:termsuite,项目名称:termsuite-core,代码行数:5,代码来源:UIMATermSuiteResourceWrapper.java

示例13: setLogger

import org.apache.uima.util.Logger; //导入依赖的package包/类
@Override
public void setLogger(Logger aLogger) {
	throw new UnsupportedOperationException();
}
 
开发者ID:termsuite,项目名称:termsuite-core,代码行数:5,代码来源:UIMATermSuiteResourceWrapper.java


注:本文中的org.apache.uima.util.Logger类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。