Package | Description |
---|---|
cn.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
|
cn.hutool.db.sql |
SQL语句和Statement构建封装
|
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 |
cn.hutool.log.level |
按照日志级别定义的日志打印接口定义
|
Modifier and Type | Method and Description |
---|---|
static void |
GlobalDbConfig.setShowSql(boolean isShowSql,
boolean isFormatSql,
boolean isShowParams,
Level level)
设置全局配置:是否通过debug日志显示SQL
|
static void |
DbUtil.setShowSqlGlobal(boolean isShowSql,
boolean isFormatSql,
boolean isShowParams,
Level level)
设置全局配置:是否通过debug日志显示SQL
|
Modifier and Type | Method and Description |
---|---|
void |
SqlLog.init(boolean isShowSql,
boolean isFormatSql,
boolean isShowParams,
Level level)
设置全局配置:是否通过debug日志显示SQL
|
Modifier and Type | Method and Description |
---|---|
boolean |
Log.isEnabled(Level level)
是否开启指定日志
|
boolean |
AbstractLog.isEnabled(Level level) |
void |
Log.log(Level level,
String format,
Object... arguments)
打印指定级别的日志
|
void |
AbstractLog.log(Level level,
String format,
Object... arguments) |
static void |
StaticLog.log(Level level,
Throwable t,
String format,
Object... arguments)
打印日志
|
void |
Log.log(Level level,
Throwable t,
String format,
Object... arguments)
打印 指定级别的日志
|
void |
AbstractLog.log(Level level,
Throwable t,
String format,
Object... arguments) |
void |
Log.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments)
打印 ERROR 等级的日志
|
Modifier and Type | Method and Description |
---|---|
void |
ApacheCommonsLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
boolean |
ConsoleLog.isEnabled(Level level) |
void |
ConsoleLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
void |
ConsoleColorLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
static void |
ConsoleLog.setLevel(Level customLevel)
设置自定义的日志显示级别
|
Modifier and Type | Method and Description |
---|---|
static void |
ConsoleColorLog.setColorFactory(Function<Level,AnsiColor> colorFactory)
设置颜色工厂,根据日志级别,定义不同的颜色
|
Modifier and Type | Method and Description |
---|---|
void |
JbossLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
void |
JdkLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
void |
Log4jLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
void |
Log4j2Log.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
void |
LogTubeLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
void |
Slf4jLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
boolean |
TinyLog2.isEnabled(Level level) |
boolean |
TinyLog.isEnabled(Level level) |
void |
TinyLog2.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
void |
TinyLog.log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
static Level |
Level.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Level[] |
Level.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2024. All rights reserved.