public interface Log extends TraceLog, DebugLog, InfoLog, WarnLog, ErrorLog
Modifier and Type | Method and Description |
---|---|
static Log |
get() |
static Log |
get(Class<?> clazz)
获得Log
|
static Log |
get(String name)
获得Log
|
String |
getName() |
boolean |
isEnabled(Level level)
是否开启指定日志
|
void |
log(Level level,
String format,
Object... arguments)
打印指定级别的日志
|
void |
log(Level level,
Throwable t,
String format,
Object... arguments)
打印 指定级别的日志
|
void |
log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments)
打印 ERROR 等级的日志
|
isTraceEnabled, trace, trace, trace, trace
static Log get()
String getName()
boolean isEnabled(Level level)
level
- 日志级别void log(Level level, String format, Object... arguments)
level
- 级别format
- 消息模板arguments
- 参数void log(Level level, Throwable t, String format, Object... arguments)
level
- 级别t
- 错误对象format
- 消息模板arguments
- 参数Copyright © 2024. All rights reserved.