本文整理了Java中org.apache.uima.util.Logger.setLevel()
方法的一些代码示例,展示了Logger.setLevel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.setLevel()
方法的具体详情如下:
包路径:org.apache.uima.util.Logger
类名称:Logger
方法名:setLevel
[英]Sets the level of messages that will be logged by this logger. Note that if you call UIMAFramework.getLogger().setLevel(level)
, this will only change the logging level for messages produced by the UIMA framework. It will NOT change the logging level for messages produced by annotators. To change the logging level for an annotator, use UIMAFramework.getLogger(YourAnnotatorClass.class).setLevel(level)
.
If you need more flexibility it configuring the logger, consider using the standard Java logger properties file or the java.util.logging APIs.
[中]设置此记录器将记录的消息级别。请注意,如果调用UIMAFramework.getLogger().setLevel(level)
,这只会更改UIMA框架生成的消息的日志记录级别。它不会更改注释器生成的消息的日志记录级别。要更改注释器的日志记录级别,请使用UIMAFramework.getLogger(YourAnnotatorClass.class).setLevel(level)
。
如果需要更多的灵活性,它配置日志记录器,考虑使用标准的java日志记录程序属性文件或java。util。日志API。
代码示例来源:origin: org.apache.uima/uimafit-core
public void setLevel(Level level) {
context.getLogger().setLevel(level);
}
代码示例来源:origin: org.apache.uima/uimaj-tools
@Override
public void actionPerformed(ActionEvent e) {
JRadioButtonMenuItem item = (JRadioButtonMenuItem) e.getSource();
// set UIMA framework log level with the given value
for (int i = 0; i < MainFrame.logLevels.size(); i++) {
Level level = MainFrame.logLevels.get(i);
// search for selected log level
if (level.toString().equals(item.getText())) {
UIMAFramework.getLogger().setLevel(level);
}
}
}
}
代码示例来源:origin: org.apache.uima/uimaj-component-test-util
logger.setLevel(Level.OFF);
logger.setLevel(defaultLogLevel);
代码示例来源:origin: apache/uima-uimaj
logger.setLevel(Level.OFF);
logger.setLevel(defaultLogLevel);
内容来源于网络,如有侵权,请联系作者删除!