All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.smi.protege.util.ConsoleFormatter Maven / Gradle / Ivy

Go to download

Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.

There is a newer version: 3.5.1
Show newest version
package edu.stanford.smi.protege.util;

import java.util.logging.*;

/**
 * TODO Class Comment
 * 
 * @author Ray Fergerson 
 */
public class ConsoleFormatter extends AbstractFormatter {
    
    public String format(LogRecord record) {
    	int level = record.getLevel().intValue();
        boolean showMethod =  level >= Level.WARNING.intValue();
        boolean showLevel = (level != Level.INFO.intValue()) &&
        					(level != Level.CONFIG.intValue());
        return format(record, null, false, showMethod, true, showLevel);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy