public abstract class Log
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
DEBUG |
static byte |
ERRR |
static byte |
FATAL |
static byte |
INFO |
static java.lang.String[] |
LVLS |
static byte |
TRACE |
static byte |
WARN |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.Object... objs) |
static void |
err(java.lang.Object... objs) |
static void |
err(java.lang.Throwable ex) |
static void |
fatal(java.lang.Object... objs) |
static java.lang.String |
fixedLength(java.lang.String s,
int length) |
static void |
flushStdout() |
static java.lang.String |
getLogDir() |
static java.lang.String |
getLogFileName(java.lang.String level) |
static java.lang.String |
getLogPathFileNameStem() |
static boolean |
getQuiet() |
static void |
httpd(java.lang.String msg) |
static void |
httpd(java.lang.String method,
java.lang.String uri,
int status,
long deltaMillis) |
static void |
ignore(java.lang.Throwable e) |
static void |
ignore(java.lang.Throwable e,
java.lang.String msg) |
static void |
ignore(java.lang.Throwable e,
java.lang.String msg,
boolean printException) |
static void |
info(java.lang.Object... objs) |
static void |
info(java.lang.String s,
boolean stdout) |
static void |
init(java.lang.String slvl,
boolean quiet) |
static void |
log(int level,
java.lang.Object... objs) |
static void |
POST(int n,
java.lang.Exception e) |
static void |
POST(int n,
java.lang.String s)
POST stands for "Power on self test".
|
static void |
setQuiet(boolean q) |
static java.lang.RuntimeException |
throwErr(java.lang.Throwable e) |
static void |
trace(java.lang.Object... objs) |
static byte |
valueOf(java.lang.String slvl) |
static void |
warn(java.lang.Object... objs) |
public static final byte FATAL
public static final byte ERRR
public static final byte WARN
public static final byte INFO
public static final byte DEBUG
public static final byte TRACE
public static final java.lang.String[] LVLS
public static byte valueOf(java.lang.String slvl)
public static void init(java.lang.String slvl, boolean quiet)
public static void trace(java.lang.Object... objs)
public static void debug(java.lang.Object... objs)
public static void info(java.lang.Object... objs)
public static void warn(java.lang.Object... objs)
public static void err(java.lang.Object... objs)
public static void err(java.lang.Throwable ex)
public static void fatal(java.lang.Object... objs)
public static void log(int level, java.lang.Object... objs)
public static void httpd(java.lang.String msg)
public static void httpd(java.lang.String method, java.lang.String uri, int status, long deltaMillis)
public static void info(java.lang.String s, boolean stdout)
public static java.lang.RuntimeException throwErr(java.lang.Throwable e)
public static void flushStdout()
public static java.lang.String getLogDir() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getLogPathFileNameStem() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getLogFileName(java.lang.String level) throws java.lang.Exception
java.lang.Exception
public static java.lang.String fixedLength(java.lang.String s, int length)
public static void ignore(java.lang.Throwable e)
public static void ignore(java.lang.Throwable e, java.lang.String msg)
public static void ignore(java.lang.Throwable e, java.lang.String msg, boolean printException)
public static void POST(int n, java.lang.String s)
n
- POST code.s
- String to emit.public static void POST(int n, java.lang.Exception e)
public static void setQuiet(boolean q)
public static boolean getQuiet()