| 程序包 | 说明 |
|---|---|
| org.apache.commons.logging |
Spring's variant of the
Commons Logging API:
with special support for Log4J 2, SLF4J and
java.util.logging. |
| org.apache.commons.logging.impl |
Spring's variant of the
Commons Logging API:
with special support for Log4J 2, SLF4J and
java.util.logging. |
| 限定符和类型 | 方法和说明 |
|---|---|
Log |
LogFactory.getInstance(Class<?> clazz)
已过时。
in favor of
LogFactory.getLog(Class) |
Log |
LogFactory.getInstance(String name)
已过时。
in favor of
LogFactory.getLog(String) |
static Log |
LogFactory.getLog(Class<?> clazz)
Convenience method to return a named logger.
|
static Log |
LogFactory.getLog(String name)
Convenience method to return a named logger.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
NoOpLog
Trivial implementation of
Log that throws away all messages. |
class |
SimpleLog
已过时。
in
spring-jcl (effectively equivalent to NoOpLog) |