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 | Method and Description |
---|---|
static LogFactory |
LogFactory.create()
决定日志实现
依次按照顺序检查日志库的jar是否被引入,如果未引入任何日志库,则检查ClassPath下的logging.properties,存在则使用JdkLogFactory,否则使用ConsoleLogFactory
|
static LogFactory |
GlobalLogFactory.get()
获取单例日志工厂类,如果不存在创建之
|
static LogFactory |
LogFactory.getCurrentLogFactory() |
static LogFactory |
GlobalLogFactory.set(Class<? extends LogFactory> logFactoryClass)
自定义日志实现
|
static LogFactory |
GlobalLogFactory.set(LogFactory logFactory)
自定义日志实现
|
static LogFactory |
LogFactory.setCurrentLogFactory(Class<? extends LogFactory> logFactoryClass)
自定义日志实现
|
static LogFactory |
LogFactory.setCurrentLogFactory(LogFactory logFactory)
自定义日志实现
|
Modifier and Type | Method and Description |
---|---|
static LogFactory |
GlobalLogFactory.set(LogFactory logFactory)
自定义日志实现
|
static LogFactory |
LogFactory.setCurrentLogFactory(LogFactory logFactory)
自定义日志实现
|
Modifier and Type | Method and Description |
---|---|
static LogFactory |
GlobalLogFactory.set(Class<? extends LogFactory> logFactoryClass)
自定义日志实现
|
static LogFactory |
LogFactory.setCurrentLogFactory(Class<? extends LogFactory> logFactoryClass)
自定义日志实现
|
Modifier and Type | Class and Description |
---|---|
class |
ApacheCommonsLogFactory
Apache Commons Logging
|
Modifier and Type | Class and Description |
---|---|
class |
ConsoleColorLogFactory
利用System.out.println()打印彩色日志
|
class |
ConsoleLogFactory
利用System.out.println()打印日志
|
Modifier and Type | Class and Description |
---|---|
class |
JbossLogFactory
Jboss-Logging log.
|
Modifier and Type | Class and Description |
---|---|
class |
JdkLogFactory
JDK日志工厂类
java.util.logging log.
|
Modifier and Type | Class and Description |
---|---|
class |
Log4jLogFactory
Apache Log4J log.
|
Modifier and Type | Class and Description |
---|---|
class |
Log4j2LogFactory
Apache Log4J 2 log.
|
Modifier and Type | Class and Description |
---|---|
class |
LogTubeLogFactory
LogTube log.
|
Modifier and Type | Class and Description |
---|---|
class |
Slf4jLogFactory
SLF4J log.
|
Modifier and Type | Class and Description |
---|---|
class |
TinyLog2Factory
TinyLog2 log.
|
class |
TinyLogFactory
TinyLog log.
|
Copyright © 2024. All rights reserved.