當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。