类 ConsoleColorLog
java.lang.Object
com.aizuda.easy.retry.common.log.dialect.AbstractLog
com.aizuda.easy.retry.common.log.dialect.console.ConsoleLog
com.aizuda.easy.retry.common.log.dialect.console.ConsoleColorLog
利用System.out.println()打印彩色日志
- 作者:
- wodeyangzipingpingwuqi
- 另请参阅:
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.aizuda.easy.retry.common.log.dialect.console.ConsoleLog
debug, error, getName, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, setLevel, trace, warn
-
构造器详细资料
-
ConsoleColorLog
构造- 参数:
name- 类名
-
ConsoleColorLog
构造- 参数:
clazz- 类
-
-
方法详细资料
-
setColorFactory
设置颜色工厂,根据日志级别,定义不同的颜色- 参数:
colorFactory- 颜色工厂函数
-
log
public void log(String fqcn, Level level, Throwable t, String format, Boolean remote, Object... arguments) 从接口复制的说明:Log打印 ERROR 等级的日志- 指定者:
log在接口中Log- 覆盖:
log在类中ConsoleLog- 参数:
fqcn- 完全限定类名(Fully Qualified Class Name),用于定位日志位置level- 级别t- 错误对象format- 消息模板arguments- 参数
-