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 |
fatal(java.lang.Object... objs) |
static void |
flushBufferedMessages() |
static void |
flushBufferedMessagesToStdout() |
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 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 |
init(java.lang.String sLvl,
boolean quiet,
java.lang.String maxLogFileSize) |
static boolean |
isLoggingFor(int level) |
static boolean |
isLoggingFor(java.lang.String strLevel) |
static void |
log(int level,
java.lang.Object... objs) |
static void |
notifyAboutNetworkingInitialized() |
static void |
notifyAboutProcessExiting() |
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 level) |
static void |
setLogLevel(java.lang.String level,
boolean quiet) |
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, java.lang.String maxLogFileSize)
public static void notifyAboutNetworkingInitialized()
public static void notifyAboutProcessExiting()
public static void setLogLevel(java.lang.String level, boolean quiet)
public static void setLogLevel(java.lang.String level)
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 fatal(java.lang.Object... objs)
public static void log(int level, java.lang.Object... objs)
public static java.lang.RuntimeException throwErr(java.lang.Throwable e)
public static void flushBufferedMessages()
public static void flushBufferedMessagesToStdout()
public static int getLogLevel()
public static boolean isLoggingFor(int level)
public static boolean isLoggingFor(java.lang.String strLevel)
public static java.lang.String getLogDir()
public static java.lang.String getLogFileName(java.lang.String level)
public static java.lang.String getLogFilePath(java.lang.String level)
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)