public final class Log extends Object
PrintStream
-like logging facility.Modifier and Type | Field and Description |
---|---|
static ForeignCallDescriptor |
LOG_OBJECT |
private static int |
LOG_OBJECT_ADDRESS |
private static int |
LOG_OBJECT_NEWLINE |
private static int |
LOG_OBJECT_STRING |
static ForeignCallDescriptor |
LOG_PRIMITIVE |
static ForeignCallDescriptor |
LOG_PRINTF |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
private static void |
log(ForeignCallDescriptor logPrimitive,
int typeChar,
long value,
boolean newline) |
private static void |
log(ForeignCallDescriptor logObject,
Object object,
int flags) |
static void |
print(boolean value) |
static void |
print(byte value) |
static void |
print(char value) |
static void |
print(double value) |
static void |
print(float value) |
static void |
print(int value) |
static void |
print(long value) |
static void |
print(short value) |
static void |
print(String value) |
static void |
printAddress(Object o) |
private static void |
printf(ForeignCallDescriptor logPrintf,
String format,
long v1,
long v2,
long v3) |
static void |
printf(String format,
long value)
Prints a formatted string to the log stream.
|
static void |
printf(String format,
long v1,
long v2) |
static void |
printf(String format,
long v1,
long v2,
long v3) |
static void |
println() |
static void |
println(boolean value) |
static void |
println(byte value) |
static void |
println(char value) |
static void |
println(double value) |
static void |
println(float value) |
static void |
println(int value) |
static void |
println(long value) |
static void |
println(short value) |
static void |
println(String value) |
static void |
printlnAddress(Object o) |
static void |
printlnObject(Object o) |
static void |
printObject(Object o) |
public static final ForeignCallDescriptor LOG_PRIMITIVE
public static final ForeignCallDescriptor LOG_OBJECT
public static final ForeignCallDescriptor LOG_PRINTF
private static final int LOG_OBJECT_NEWLINE
private static final int LOG_OBJECT_STRING
private static final int LOG_OBJECT_ADDRESS
public Log()
private static void log(ForeignCallDescriptor logObject, Object object, int flags)
private static void log(ForeignCallDescriptor logPrimitive, int typeChar, long value, boolean newline)
private static void printf(ForeignCallDescriptor logPrintf, String format, long v1, long v2, long v3)
public static void print(boolean value)
public static void print(byte value)
public static void print(char value)
public static void print(short value)
public static void print(int value)
public static void print(long value)
public static void printf(String format, long value)
format
- a C style printf format value that can contain at most one conversion specifier
(i.e., a sequence of characters starting with '%').value
- the value associated with the conversion specifierpublic static void print(float value)
public static void print(double value)
public static void printAddress(Object o)
public static void printObject(Object o)
public static void println(boolean value)
public static void println(byte value)
public static void println(char value)
public static void println(short value)
public static void println(int value)
public static void println(long value)
public static void println(float value)
public static void println(double value)
public static void printlnAddress(Object o)
public static void printlnObject(Object o)
public static void println()