Java Code Examples for java.util.logging.Level.ALL

The following are Jave code examples for showing how to use ALL of the java.util.logging.Level class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: jboss-eap7.1-playground   File: AbstractLoggerMain.java   View Source Code Vote up 6 votes
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;
	}
}
 
Example 2
Project: Pogamut3   File: NavigationEvaluationRepeatTask.java   View Source Code Vote up 5 votes
/**
 * 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));
}
 
Example 3
Project: uavstack   File: PLogger.java   View Source Code Vote up 5 votes
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;
    }
 
Example 4
Project: gdx-gamesvcs   File: GpgsClient.java   View Source Code Vote up 5 votes
/**
 * 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;
    }
}
 
Example 5
Project: incubator-netbeans   File: RepositoryTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 6
Project: incubator-netbeans   File: NbClipboardNativeTest.java   View Source Code Vote up 4 votes
protected Level logLevel() {
    return Level.ALL;
}
 
Example 7
Project: incubator-netbeans   File: WeakListenersTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 8
Project: incubator-netbeans   File: RepositoryRegistryTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 9
Project: alvisnlp   File: AbstractAlvisNLP.java   View Source Code Vote up 4 votes
/**
 * CLI option: be verbose.
 */
@CLIOption("-verbose")
public final void verbose() { 
	logLevel = Level.ALL;
}
 
Example 10
Project: incubator-netbeans   File: QueryTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 11
Project: incubator-netbeans   File: IssueTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 12
Project: incubator-netbeans   File: HgHookTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 13
Project: incubator-netbeans   File: QueryTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 14
Project: incubator-netbeans   File: LazyNodeTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 15
Project: incubator-netbeans   File: ManagerTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 16
Project: incubator-netbeans   File: NoAWTTest.java   View Source Code Vote up 4 votes
protected Level logLevel() {
    return Level.ALL;
}
 
Example 17
Project: incubator-netbeans   File: RepositoryInfoTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 18
Project: incubator-netbeans   File: ControllerTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 19
Project: incubator-netbeans   File: QueryRefreshTest.java   View Source Code Vote up 4 votes
@Override
protected Level logLevel() {
    return Level.ALL;
}
 
Example 20
Project: incubator-netbeans   File: Exceptions.java   View Source Code Vote up 3 votes
/** 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;
}