本文整理汇总了Java中java.util.logging.Level.ALL属性的典型用法代码示例。如果您正苦于以下问题:Java Level.ALL属性的具体用法?Java Level.ALL怎么用?Java Level.ALL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类java.util.logging.Level
的用法示例。
在下文中一共展示了Level.ALL属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLogLevel
static private Level getLogLevel(int level) {
switch (level) {
case 0:
return Level.OFF;
case 1:
return Level.WARNING;
case 2:
return Level.INFO;
case 3:
return Level.FINE;
case 4:
return Level.FINER;
case 9:
return Level.ALL;
default:
return Level.FINEST;
}
}
示例2: NavigationEvaluationRepeatTask
/**
* Default constructor.
*
* @param repeatFile
* @param navigation
* @param pathPlanner
* @param resultPath
* @param recordType
*/
public NavigationEvaluationRepeatTask(String repeatFile, String navigation, String pathPlanner, String resultPath, RecordType recordType) {
super(navigation, pathPlanner, null, true, -1, resultPath, recordType, Level.ALL);
this.repeatFile = repeatFile;
int end = repeatFile.length();
for (int i = 0; i < 2; i++) {
end = repeatFile.lastIndexOf('/', end - 1);
}
int start = repeatFile.lastIndexOf('/', end - 1);
setMapName(repeatFile.substring(start + 1, end));
}
示例3: getLevel
private static Level getLevel(LogLevel level) {
Level l = Level.INFO;
switch (level) {
case ALL:
l = Level.ALL;
break;
case DEBUG:
l = Level.FINEST;
break;
case ERR:
l = Level.SEVERE;
break;
case FINE:
l = Level.FINE;
break;
case FINER:
l = Level.FINER;
break;
case INFO:
l = Level.INFO;
break;
case WARNING:
l = Level.WARNING;
break;
default:
l = Level.INFO;
break;
}
return l;
}
示例4: getLogLevel
/**
* Gdx to Log4j log level mapping
*/
private static Level getLogLevel(int logLevel) {
switch (logLevel) {
case Application.LOG_NONE:
return Level.OFF;
case Application.LOG_ERROR:
return Level.SEVERE;
case Application.LOG_INFO:
return Level.INFO;
case Application.LOG_DEBUG:
return Level.FINEST;
default:
return Level.ALL;
}
}
示例5: logLevel
@Override
protected Level logLevel() {
return Level.ALL;
}
示例6: logLevel
protected Level logLevel() {
return Level.ALL;
}
示例7: verbose
/**
* CLI option: be verbose.
*/
@CLIOption("-verbose")
public final void verbose() {
logLevel = Level.ALL;
}
示例8: attachMessage
/** Attaches additional message to given exception. This message will
* be visible when one does <code>e.printStackTrace()</code>.
*
* @param e exception to annotate
* @param msg the message to add to the exception
* @return the exception <code>e</code>
*/
public static <E extends Throwable> E attachMessage(E e, String msg) {
AnnException ae = AnnException.findOrCreate(e, true);
LogRecord rec = new LogRecord(Level.ALL, msg);
ae.addRecord(rec);
return e;
}