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()
Get the directory where the logs are stored.
|
static java.lang.String |
getLogFileName(java.lang.String level)
Get log file name without the path for particular log level.
|
static java.lang.String |
getLogFilePath(java.lang.String level)
Get full path to a specific log file
|
static int |
getLogLevel() |
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 boolean |
isLoggingFor(java.lang.String strLevel) |
static void |
log(int level,
java.lang.Object... objs) |
static void |
notifyAboutNetworkingInitialized() |
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 |
setLogLevel(java.lang.String sLvl) |
static void |
setLogLevel(java.lang.String sLvl,
boolean quiet) |
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 notifyAboutNetworkingInitialized()
public static void setLogLevel(java.lang.String sLvl, boolean quiet)
public static void setLogLevel(java.lang.String sLvl)
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 int getLogLevel()
public static boolean isLoggingFor(java.lang.String strLevel)
public static java.lang.String getLogDir() 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 getLogFilePath(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 boolean getQuiet()
public static void setQuiet(boolean q)