public class Console extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
error()
println
|
static void |
error(Object obj)
println
|
static void |
error(String tpl,
Object... values)
println
|
static void |
error(Throwable t,
String tpl,
Object... values)
println
|
static Integer |
line() |
static void |
log()
println
|
static void |
log(Object obj)
println
|
static void |
log(String tpl,
Object... values)
println
|
static void |
log(Throwable t,
String tpl,
Object... values)
println
|
static String |
stack() |
static void |
trace(Object... os)
输出 trace
|
public static void log()
public static void log(Object obj)
obj - objectpublic static void log(Throwable t, String tpl, Object... values)
t - Throwabletpl - {}values - argspublic static void error()
public static void error(Object obj)
obj - objectpublic static void error(String tpl, Object... values)
tpl - {}values - argspublic static void error(Throwable t, String tpl, Object... values)
t - Throwabletpl - {}values - argspublic static void trace(Object... os)
os - objectspublic static String stack()
public static Integer line()
Copyright © 2025. All rights reserved.