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


Java Level.ALL属性代码示例

本文整理汇总了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;
	}
}
 
开发者ID:wfink,项目名称:jboss-eap7.1-playground,代码行数:18,代码来源:AbstractLoggerMain.java

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

示例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;
    }
 
开发者ID:uavorg,项目名称:uavstack,代码行数:31,代码来源:PLogger.java

示例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;
    }
}
 
开发者ID:MrStahlfelge,项目名称:gdx-gamesvcs,代码行数:17,代码来源:GpgsClient.java

示例5: logLevel

@Override
protected Level logLevel() {
    return Level.ALL;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:RepositoryTest.java

示例6: logLevel

protected Level logLevel() {
    return Level.ALL;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:NbClipboardNativeTest.java

示例7: verbose

/**
 * CLI option: be verbose.
 */
@CLIOption("-verbose")
public final void verbose() { 
	logLevel = Level.ALL;
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:7,代码来源:AbstractAlvisNLP.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:Exceptions.java


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