public class ApacheCommonsLog extends AbstractLog
Constructor and Description |
---|
ApacheCommonsLog(Class<?> clazz) |
ApacheCommonsLog(org.apache.commons.logging.Log logger,
String name) |
ApacheCommonsLog(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 format,
Object... arguments)
打印 WARN 等级的日志
|
void |
warn(String fqcn,
Throwable t,
String format,
Object... arguments)
打印 WARN 等级的日志
|
void |
warn(Throwable t,
String format,
Object... arguments)
打印 WARN 等级的日志
|
debug, debug, debug, error, error, error, info, info, info, isEnabled, log, log, trace, trace, trace, warn
public ApacheCommonsLog(org.apache.commons.logging.Log logger, String name)
public ApacheCommonsLog(Class<?> clazz)
public ApacheCommonsLog(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 format, Object... arguments)
WarnLog
warn
in interface WarnLog
warn
in class AbstractLog
format
- 消息模板arguments
- 参数public void warn(Throwable t, String format, Object... arguments)
WarnLog
warn
in interface WarnLog
warn
in class AbstractLog
t
- 错误对象format
- 消息模板arguments
- 参数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.