io.github.sinri.keel.logger.KeelLogLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Keel Show documentation
Show all versions of Keel Show documentation
A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.
The newest version!
package io.github.sinri.keel.logger;
import javax.annotation.Nonnull;
public enum KeelLogLevel {
DEBUG, INFO, NOTICE, WARNING, ERROR, FATAL, SILENT;
public boolean isEnoughSeriousAs(@Nonnull KeelLogLevel standardLevel) {
return this.ordinal() >= standardLevel.ordinal();
}
public boolean isNegligibleThan(@Nonnull KeelLogLevel standardLevel) {
return this.ordinal() < standardLevel.ordinal();
}
/**
* @return should always be silent
* @since 1.10
*/
public boolean isSilent() {
return this.ordinal() >= SILENT.ordinal();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy