public class L extends Object
Anti-pattern, do NOT overuse: gathers information or logs by ThreadLocal. Use in time, remove in time. SoftReference can be GC if not enough memory. In `(Cate:)?Message\n` format with slf4j syntax placeholder. and the last `\n` can be omitted.
| Modifier and Type | Class and Description |
|---|---|
static class |
L.D |
| Constructor and Description |
|---|
L() |
| Modifier and Type | Method and Description |
|---|---|
static void |
error(String message) |
static void |
error(String message,
Object... args) |
static @NotNull String |
finish() |
static @NotNull String |
format(List<L.D> ds) |
static String |
getCateTkn() |
static String |
getLineTkn() |
static @NotNull List<L.D> |
inspect() |
static void |
message(String message) |
static void |
message(String cate,
String message) |
static void |
message(String cate,
String message,
Object... args) |
static void |
note(String message) |
static void |
note(String message,
Object... args) |
static @NotNull List<L.D> |
remove() |
static void |
setToken(String cate,
String line) |
static void |
warn(String message) |
static void |
warn(String message,
Object... args) |
public static String getCateTkn()
public static String getLineTkn()
public static void error(String message)
public static void warn(String message)
public static void note(String message)
public static void message(String message)
@NotNull public static @NotNull String finish()
Copyright © 2023. All rights reserved.