Package | Description |
---|---|
org.dromara.hutool.log |
Hutool-log只是一个日志的通用门面,功能类似于Slf4j。
|
org.dromara.hutool.log.engine |
第三方日志库的实现封装
|
org.dromara.hutool.log.engine.commons |
Apache-Commons-Logging日志库的实现封装
|
org.dromara.hutool.log.engine.console |
控制台输出的实现封装
|
org.dromara.hutool.log.engine.jboss |
jboss-logging实现
|
org.dromara.hutool.log.engine.jdk |
JDK-Logging的实现封装
|
org.dromara.hutool.log.engine.log4j |
Log4j的实现封装
|
org.dromara.hutool.log.engine.log4j2 |
Log4j2的实现封装
|
org.dromara.hutool.log.engine.slf4j |
Slf4j的实现封装
|
org.dromara.hutool.log.engine.tinylog |
tinylog的实现封装
封装包括TinyLog和TinyLog2 |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLog
抽象日志类
实现了一些通用的接口 |
Modifier and Type | Method and Description |
---|---|
static Log |
Log.get() |
static Log |
Log.get(Class<?> clazz)
获得Log
|
static Log |
Log.get(String name)
获得Log
|
static Log |
LogFactory.getLog(Class<?> clazz)
获得日志对象
|
static Log |
LogFactory.getLog(String name)
获得日志对象
|
Modifier and Type | Method and Description |
---|---|
static void |
LogUtil.debug(Log log,
String format,
Object... arguments)
Debug等级日志,小于Info
|
static void |
LogUtil.error(Log log,
String format,
Object... arguments)
Error等级日志
|
static void |
LogUtil.error(Log log,
Throwable e)
Error等级日志
|
static void |
LogUtil.error(Log log,
Throwable e,
String format,
Object... arguments)
Error等级日志
|
static void |
LogUtil.info(Log log,
String format,
Object... arguments)
Info等级日志,小于Warn
|
static void |
LogUtil.trace(Log log,
String format,
Object... arguments)
Trace等级日志,小于Debug
|
static void |
LogUtil.warn(Log log,
String format,
Object... arguments)
Warn等级日志,小于Error
|
static void |
LogUtil.warn(Log log,
Throwable e,
String format,
Object... arguments)
Warn等级日志,小于Error
|
Modifier and Type | Method and Description |
---|---|
Log |
LogEngine.createLog(Class<?> clazz)
创建日志对象
|
Log |
LogEngine.createLog(String name)
创建日志对象
|
default Log |
LogEngine.getLog(Class<?> clazz)
获得日志对象(单例)
|
default Log |
LogEngine.getLog(String name)
获得日志对象(单例)
|
Modifier and Type | Class and Description |
---|---|
class |
ApacheCommonsLog
Apache Commons Logging
|
class |
ApacheCommonsLog4JLog
Apache Commons Logging for Log4j
|
Modifier and Type | Method and Description |
---|---|
Log |
ApacheCommonsLogEngine.createLog(Class<?> clazz) |
Log |
ApacheCommonsLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
ConsoleColorLog
利用System.out.println()打印彩色日志
|
class |
ConsoleLog
利用System.out.println()打印日志
|
Modifier and Type | Method and Description |
---|---|
Log |
ConsoleLogEngine.createLog(Class<?> clazz) |
Log |
ConsoleColorLogEngine.createLog(Class<?> clazz) |
Log |
ConsoleLogEngine.createLog(String name) |
Log |
ConsoleColorLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
JbossLog
Jboss-Logging log.
|
Modifier and Type | Method and Description |
---|---|
Log |
JbossLogEngine.createLog(Class<?> clazz) |
Log |
JbossLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
JdkLog
java.util.logging log.
|
Modifier and Type | Method and Description |
---|---|
Log |
JdkLogEngine.createLog(Class<?> clazz) |
Log |
JdkLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Log4jLog
Apache Log4J log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Log4jLogEngine.createLog(Class<?> clazz) |
Log |
Log4jLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Log4j2Log
Apache Log4J 2 log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Log4j2LogEngine.createLog(Class<?> clazz) |
Log |
Log4j2LogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Slf4jLog
SLF4J log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Slf4jLogEngine.createLog(Class<?> clazz) |
Log |
Slf4jLogEngine.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
TinyLog
tinylog log.
|
class |
TinyLog2
tinylog log.
|
Modifier and Type | Method and Description |
---|---|
Log |
TinyLogEngine.createLog(Class<?> clazz) |
Log |
TinyLog2Engine.createLog(Class<?> clazz) |
Log |
TinyLogEngine.createLog(String name) |
Log |
TinyLog2Engine.createLog(String name) |
Copyright © 2025. All rights reserved.