类 AlignmentPrefixSupplier
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.logging.AlignmentPrefixSupplier
-
- 所有已实现的接口:
PrefixSupplier
public class AlignmentPrefixSupplier extends Object implements PrefixSupplier
Fast petty prefix supplier[FMS Class Definer] [INFO] Class end gen. [ FMS Application ] [INFO] Internet port override: 25565 [ FakeMineServer ] [INFO] Starting fake server... [ FakeMineServer ] [INFO] Server started on port: 25565 [ FMS Application ] [INFO] Server Status Request... Modify Message [ FakeMineServer ] [INFO] /127.0.0.1:60783 lost connection. [ NetWork ] [WARNING] java.net.SocketTimeoutException: connect timed out [ FakeMineServer ] [ INFO ] Karlatemp lost connection.
- 从以下版本开始:
- 2.8
-
-
构造器概要
构造器 构造器 说明 AlignmentPrefixSupplier(PrefixSupplier parent)
-
方法概要
修饰符和类型 方法 说明 protected String
alignment(int insert, String value)
protected boolean
doInsertLevel(Level l)
String
get(boolean error, String line, Level level, LogRecord record)
protected int
getAlignmentChars(AtomicInteger w, int sw)
protected int
getCharsFontWidth(String chars)
protected static String
getEmpty(int length)
protected String
join(String prefix, String level)
protected String
valueOf(Level lv)
-
-
-
构造器详细资料
-
AlignmentPrefixSupplier
public AlignmentPrefixSupplier(PrefixSupplier parent)
-
-
方法详细资料
-
getEmpty
protected static String getEmpty(int length)
-
doInsertLevel
protected boolean doInsertLevel(@Nullable Level l)
-
getCharsFontWidth
protected int getCharsFontWidth(@NotNull String chars)
-
getAlignmentChars
protected int getAlignmentChars(AtomicInteger w, int sw)
-
get
@NotNull public String get(boolean error, @Nullable String line, @Nullable Level level, @Nullable LogRecord record)
- 指定者:
get
在接口中PrefixSupplier
-
-