接口的使用
org.springframework.boot.ansi.AnsiElement
使用AnsiElement的程序包
程序包
说明
Support classes to provide ANSI color output.
Support for the Log4j 2 logging library.
Support for the Logback logging library.
-
org.springframework.boot.ansi中AnsiElement的使用
修饰符和类型类说明final class
AnsiElement
implementation for ANSI 8-bit foreground or background color codes.enum
Ansi
background colors.enum
Ansi
colors.enum
Ansi
styles.参数类型为AnsiElement的org.springframework.boot.ansi中的方法修饰符和类型方法说明static String
AnsiOutput.encode
(AnsiElement element) Encode a singleAnsiElement
if output is enabled. -
org.springframework.boot.logging.log4j2中AnsiElement的使用
修饰符和类型方法说明protected void
ColorConverter.appendAnsiString
(StringBuilder toAppendTo, String in, AnsiElement element) -
org.springframework.boot.logging.logback中AnsiElement的使用