public abstract class Log extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.LogStr |
static interface |
Log.Tag
Tags for log messages
|
static class |
Log.Wrapper |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
_dontDie |
static Log.Tag.Kind[] |
KINDS |
static Key |
LOG_KEY
Key for the log in the KV store
|
static long |
PID
Some guess at the process ID.
|
static Log.Tag.Sys[] |
SYSS |
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debug(Log.Tag.Sys t,
Object... objects)
Log a debug message to the log file and the store if the subsystem's flag is set.
|
static void |
debug(Object... objects)
Log a debug message to the log file and the store if the subsystem's flag is set.
|
static void |
die(String s) |
static void |
err(Log.Tag.Sys t,
String msg)
Record a message to the log file and store.
|
static <T extends Throwable> |
err(Log.Tag.Sys t,
String msg,
T exception)
Record an exception to the log file and store.
|
static <T extends Throwable> |
err(Log.Tag.Sys t,
T exception)
Record an exception to the log file and store.
|
static void |
err(String msg)
Record a message to the log file and store.
|
static <T extends Throwable> |
err(String msg,
T exception)
Record an exception to the log file and store.
|
static <T extends Throwable> |
err(T exception)
Record an exception to the log file and store.
|
static RuntimeException |
errRTExcept(Throwable exception)
Record an exception to the log file and store and return a new
RuntimeException that wraps around the exception.
|
static String |
fixedLength(String s,
int length) |
static boolean |
flag(Log.Tag.Sys t)
Check if a subsystem will print debug message to the LOG file
|
static String |
getLogDir() |
static String |
getLogPathFileName() |
static String |
getLogPathFileNameStem() |
static void |
info_no_DKV(Log.Tag.Sys t,
Object... objects) |
static void |
info_no_stdout(Log.Tag.Sys t,
Object... objects)
Log an information message to standard out, the log file and the store.
|
static void |
info_no_stdout(Object... objects)
Log an information message to standard out, the log file and the store.
|
static void |
info(Log.Tag.Sys t,
Object... objects)
Log an information message to standard out, the log file and the store.
|
static void |
info(Object... objects)
Log an information message to standard out, the log file and the store.
|
static void |
log(File file,
PrintStream stream) |
static void |
main(String[] args) |
static String |
padRight(String stringToPad,
int size) |
static void |
POST(int n,
Exception e) |
static void |
POST(int n,
String s)
POST stands for "Power on self test".
|
static void |
setFlag(Log.Tag.Sys t)
Set the debug flag.
|
static void |
setLogLevel(int log_level) |
static void |
tmp(Object... objects)
Temporary log statement.
|
static void |
trace(Object... objects)
Log a debug message to the log file and the store if the subsystem's flag is set.
|
static void |
unsetFlag(Log.Tag.Sys t)
Unset the debug flag.
|
static PrintStream |
unwrap(PrintStream stream) |
static void |
unwrap(PrintStream stream,
String s)
Print a message to the stream without the logging information.
|
static Throwable |
warn(Log.Tag.Sys t,
String msg)
Log a warning to standard out, the log file and the store.
|
static <T extends Throwable> |
warn(Log.Tag.Sys t,
String msg,
T exception)
Log a warning to standard out, the log file and the store.
|
static Throwable |
warn(String msg)
Log a warning to standard out, the log file and the store.
|
static void |
wrap() |
public static final Log.Tag.Kind[] KINDS
public static final Log.Tag.Sys[] SYSS
public static Key LOG_KEY
public static final long PID
public static boolean _dontDie
public static void wrap()
public static boolean flag(Log.Tag.Sys t)
public static void setFlag(Log.Tag.Sys t)
public static void unsetFlag(Log.Tag.Sys t)
public static String getLogDir()
public static String getLogPathFileNameStem()
public static String getLogPathFileName()
public static void setLogLevel(int log_level)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T extends Throwable> T err(Log.Tag.Sys t, String msg, T exception)
public static void err(Log.Tag.Sys t, String msg)
public static <T extends Throwable> T err(String msg, T exception)
public static void err(String msg)
public static <T extends Throwable> T err(Log.Tag.Sys t, T exception)
public static <T extends Throwable> T err(T exception)
public static RuntimeException errRTExcept(Throwable exception)
public static <T extends Throwable> T warn(Log.Tag.Sys t, String msg, T exception)
public static Throwable warn(Log.Tag.Sys t, String msg)
public static Throwable warn(String msg)
public static void info_no_stdout(Log.Tag.Sys t, Object... objects)
public static void info_no_DKV(Log.Tag.Sys t, Object... objects)
public static void info(Log.Tag.Sys t, Object... objects)
public static void info_no_stdout(Object... objects)
public static void info(Object... objects)
public static void debug(Object... objects)
public static void debug(Log.Tag.Sys t, Object... objects)
public static void trace(Object... objects)
public static void tmp(Object... objects)
public static void die(String s)
public static void unwrap(PrintStream stream, String s)
public static PrintStream unwrap(PrintStream stream)
public static void log(File file, PrintStream stream) throws Exception
Exceptionpublic static void POST(int n,
String s)
n - POST code.s - String to emit.public static void POST(int n,
Exception e)
public static void main(String[] args)
Copyright © 2013–2014 0xdata. All rights reserved.