| 程序包 | 说明 |
|---|---|
| cn.hutool.log |
Hutool-log只是一个日志的通用门面,功能类似于Slf4j。
|
| cn.hutool.log.dialect.commons | |
| cn.hutool.log.dialect.console | |
| cn.hutool.log.dialect.jdk | |
| cn.hutool.log.dialect.log4j | |
| cn.hutool.log.dialect.log4j2 | |
| cn.hutool.log.dialect.slf4j | |
| cn.hutool.log.dialect.tinylog |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
LocationAwareLog
位置感知日志接口,此接口用于通过传入当前全类名的方式来感知日志打印的行号
此方法主要用于在继续封装日志实现的时候行号错误的问题,继续封装时传入封装类的全类名即可解决这个问题 |
interface |
Log
日志统一接口
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractLocationAwareLog
抽象定位感知日志实现
|
class |
AbstractLog
抽象日志类
实现了一些通用的接口 |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ApacheCommonsLog
Apache Commons Logging
|
class |
ApacheCommonsLog4JLog
Apache Commons Logging for Log4j
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConsoleLog
利用System.out.println()打印日志
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
JdkLog
java.util.logging log.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Log4jLog
Apache Log4J log.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Log4j2Log
Apache Log4J 2 log.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Slf4jLog
SLF4J log.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
TinyLog
tinylog log.
|
Copyright © 2018. All rights reserved.