org.asciidoctor.cli.MaxSeverityLogHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asciidoctorj-cli Show documentation
Show all versions of asciidoctorj-cli Show documentation
AsciidoctorJ Command Line Interface
package org.asciidoctor.cli;
import org.asciidoctor.log.LogHandler;
import org.asciidoctor.log.LogRecord;
import org.asciidoctor.log.Severity;
public class MaxSeverityLogHandler implements LogHandler {
private Severity maxSeverity = Severity.DEBUG;
@Override
public void log(LogRecord logRecord) {
if (this.maxSeverity.compareTo(logRecord.getSeverity()) < 0) {
this.maxSeverity = logRecord.getSeverity();
}
}
public Severity getMaxSeverity() {
return this.maxSeverity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy