public class LogTubeLog extends AbstractLog
Constructor and Description |
---|
LogTubeLog(Class<?> clazz) |
LogTubeLog(io.github.logtube.core.IEventLogger logger) |
LogTubeLog(String name) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 DEBUG 等级的日志
|
void |
error(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 ERROR 等级的日志
|
String |
getName() |
void |
info(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 INFO 等级的日志
|
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
log(String fqcn,
Level level,
Throwable t,
String format,
Object... arguments)
打印 ERROR 等级的日志
|
void |
trace(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 TRACE 等级的日志
|
void |
warn(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 WARN 等级的日志
|
debug, debug, debug, error, error, error, info, info, info, isEnabled, log, log, trace, trace, trace, warn, warn, warn
public LogTubeLog(io.github.logtube.core.IEventLogger logger)
public LogTubeLog(Class<?> clazz)
public LogTubeLog(String name)
public String getName()
public boolean isTraceEnabled()
public void trace(String fqcn, Throwable t, String format, Object... arguments)
TraceLog
fqcn
- 完全限定类名(Fully Qualified Class Name),用于定位日志位置t
- 错误对象format
- 消息模板arguments
- 参数public boolean isDebugEnabled()
public void debug(String fqcn, Throwable t, String format, Object... arguments)
DebugLog
fqcn
- 完全限定类名(Fully Qualified Class Name),用于定位日志位置t
- 错误对象format
- 消息模板arguments
- 参数public boolean isInfoEnabled()
public void info(String fqcn, Throwable t, String format, Object... arguments)
InfoLog
fqcn
- 完全限定类名(Fully Qualified Class Name),用于定位日志位置t
- 错误对象format
- 消息模板arguments
- 参数public boolean isWarnEnabled()
public void warn(String fqcn, Throwable t, String format, Object... arguments)
WarnLog
fqcn
- 完全限定类名(Fully Qualified Class Name),用于定位日志位置t
- 错误对象format
- 消息模板arguments
- 参数public boolean isErrorEnabled()
public void error(String fqcn, Throwable t, String format, Object... arguments)
ErrorLog
fqcn
- 完全限定类名(Fully Qualified Class Name),用于定位日志位置t
- 错误对象format
- 消息模板arguments
- 参数Copyright © 2024. All rights reserved.