Package | Description |
---|---|
cn.hutool.log |
Hutool-log只是一个日志的通用门面,功能类似于Slf4j。
|
cn.hutool.log.dialect.commons |
Apache-Commons-Logging日志库的实现封装
|
cn.hutool.log.dialect.console |
控制台输出的实现封装
|
cn.hutool.log.dialect.jboss |
jboss-logging实现
|
cn.hutool.log.dialect.jdk |
JDK-Logging的实现封装
|
cn.hutool.log.dialect.log4j |
Log4j的实现封装
|
cn.hutool.log.dialect.log4j2 |
Log4j2的实现封装
|
cn.hutool.log.dialect.logtube |
LogTube的实现封装
|
cn.hutool.log.dialect.slf4j |
Slf4j的实现封装
|
cn.hutool.log.dialect.tinylog |
tinylog的实现封装
封装包括TinyLog和TinyLog2 |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLog
抽象日志类
实现了一些通用的接口 |
Modifier and Type | Method and Description |
---|---|
abstract Log |
LogFactory.createLog(Class<?> clazz)
创建日志对象
|
abstract Log |
LogFactory.createLog(String name)
创建日志对象
|
static Log |
StaticLog.get()
Deprecated.
请使用
get() |
static Log |
LogFactory.get() |
static Log |
Log.get() |
static Log |
StaticLog.get(Class<?> clazz)
Deprecated.
请使用
get(Class) |
static Log |
LogFactory.get(Class<?> clazz)
获得日志对象
|
static Log |
Log.get(Class<?> clazz)
获得Log
|
static Log |
StaticLog.get(String name)
Deprecated.
请使用
get(String) |
static Log |
LogFactory.get(String name)
获得日志对象
|
static Log |
Log.get(String name)
获得Log
|
Log |
LogFactory.getLog(Class<?> clazz)
获得日志对象
|
Log |
LogFactory.getLog(String name)
获得日志对象
|
Modifier and Type | Method and Description |
---|---|
static void |
StaticLog.debug(Log log,
String format,
Object... arguments)
Debug等级日志,小于Info
|
static void |
StaticLog.error(Log log,
String format,
Object... arguments)
Error等级日志
|
static void |
StaticLog.error(Log log,
Throwable e)
Error等级日志
|
static void |
StaticLog.error(Log log,
Throwable e,
String format,
Object... arguments)
Error等级日志
|
static void |
StaticLog.info(Log log,
String format,
Object... arguments)
Info等级日志,小于Warn
|
static void |
StaticLog.trace(Log log,
String format,
Object... arguments)
Trace等级日志,小于Debug
|
static void |
StaticLog.warn(Log log,
String format,
Object... arguments)
Warn等级日志,小于Error
|
static void |
StaticLog.warn(Log log,
Throwable e,
String format,
Object... arguments)
Warn等级日志,小于Error
|
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 |
ApacheCommonsLogFactory.createLog(Class<?> clazz) |
Log |
ApacheCommonsLogFactory.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 |
ConsoleLogFactory.createLog(Class<?> clazz) |
Log |
ConsoleColorLogFactory.createLog(Class<?> clazz) |
Log |
ConsoleLogFactory.createLog(String name) |
Log |
ConsoleColorLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
JbossLog
Jboss-Logging log.
|
Modifier and Type | Method and Description |
---|---|
Log |
JbossLogFactory.createLog(Class<?> clazz) |
Log |
JbossLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
JdkLog
java.util.logging log.
|
Modifier and Type | Method and Description |
---|---|
Log |
JdkLogFactory.createLog(Class<?> clazz) |
Log |
JdkLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Log4jLog
Apache Log4J log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Log4jLogFactory.createLog(Class<?> clazz) |
Log |
Log4jLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Log4j2Log
Apache Log4J 2 log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Log4j2LogFactory.createLog(Class<?> clazz) |
Log |
Log4j2LogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
LogTubeLog
LogTube log.封装
|
Modifier and Type | Method and Description |
---|---|
Log |
LogTubeLogFactory.createLog(Class<?> clazz) |
Log |
LogTubeLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
Slf4jLog
SLF4J log.
|
Modifier and Type | Method and Description |
---|---|
Log |
Slf4jLogFactory.createLog(Class<?> clazz) |
Log |
Slf4jLogFactory.createLog(String name) |
Modifier and Type | Class and Description |
---|---|
class |
TinyLog
tinylog log.
|
class |
TinyLog2
tinylog log.
|
Modifier and Type | Method and Description |
---|---|
Log |
TinyLogFactory.createLog(Class<?> clazz) |
Log |
TinyLog2Factory.createLog(Class<?> clazz) |
Log |
TinyLogFactory.createLog(String name) |
Log |
TinyLog2Factory.createLog(String name) |
Copyright © 2024. All rights reserved.