2021
11-14
11-14
logback 自定义Pattern模板教程
配色板"%black","%red","%green","%yellow","%blue","%magenta","%cyan","%white","%gray","%boldRed","%boldGreen","%boldYellow","%boldBlue","%boldMagenta","%boldCyan","%boldWhite","%highlight"例:%red(XX),则XX这两个字为红色其它%p表示level,%t表示线程名自定义Pattern模板创建自定义格式转换符有两步:1.写一个转换器类,继承ClassicConvert示例代码:publicclassIpConvertextendsClassicConverter{...
继续阅读 >