|
Java example source code file (Level.java)
The Level.java Java example source codepackage org.slf4j.event; import static org.slf4j.event.EventConstants.DEBUG_INT; import static org.slf4j.event.EventConstants.ERROR_INT; import static org.slf4j.event.EventConstants.INFO_INT; import static org.slf4j.event.EventConstants.TRACE_INT; import static org.slf4j.event.EventConstants.WARN_INT; /** * * @author ceki * @since 1.7.15 */ public enum Level { ERROR(ERROR_INT, "ERROR"), WARN(WARN_INT, "WARN"), INFO(INFO_INT, "INFO"), DEBUG(DEBUG_INT, "DEBUG"), TRACE(TRACE_INT, "TRACE"); private int levelInt; private String levelStr; Level(int i, String s) { levelInt = i; levelStr = s; } public int toInt() { return levelInt; } /** * Returns the string representation of this Level. */ public String toString() { return levelStr; } } Other Java examples (source code examples)Here is a short list of links related to this Java Level.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.