edu.stanford.smi.protege.util.ConsoleFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protege Show documentation
Show all versions of protege Show documentation
Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.
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