Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
SLF4J API Source Code
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time.
Here is the source code for SLF4J API 2.0.4. You can download its pre-compiled version slf4j-api-2.0.4.jar at SLF4J Download Website.
✍: FYIcenter.com
⏎ org/slf4j/event/Level.java
package 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; /** * SLF4J's internal representation of Level. * * * @author Ceki Gülcü * @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 final int levelInt; private final String levelStr; Level(int i, String s) { levelInt = i; levelStr = s; } public int toInt() { return levelInt; } public static Level intToLevel(int levelInt) { switch (levelInt) { case (TRACE_INT): return TRACE; case (DEBUG_INT): return DEBUG; case (INFO_INT): return INFO; case (WARN_INT): return WARN; case (ERROR_INT): return ERROR; default: throw new IllegalArgumentException("Level integer [" + levelInt + "] not recognized."); } } /** * Returns the string representation of this Level. */ public String toString() { return levelStr; } }
⏎ org/slf4j/event/Level.java
Or download all of them as a single archive file:
File name: slf4j-api-2.0.4-sources.jar File size: 70304 bytes Release date: 2022-11-17 Download
⇒ Source Code for SLF4J Simple Logging
⇐ Downloading SLF4J Components
2020-02-13, 28625👍, 2💬
Popular Posts:
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
layout.jar is a component in iText Java library to provide layout functionalities. iText Java librar...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...