public class RealLog extends Log
LEFT_ALIGN, NO_ALIGN, RIGHT_ALIGN
Modifier | Constructor and Description |
---|---|
protected |
RealLog() |
Modifier and Type | Method and Description |
---|---|
Log |
autoflush(boolean onOrOff)
Turn auto-flushing of the log at every newline on or off.
|
Log |
bool(boolean value)
Prints the strings "true" or "false" depending on the value.
|
Log |
character(char value)
Prints the provided character.
|
Log |
flush()
Forces the log to flush to its destination.
|
Log |
hex(int value)
Prints the value, treated as an unsigned value, in hexadecimal format.
|
Log |
hex(long value)
Prints the value, treated as an unsigned value, in hexadecimal format.
|
Log |
hex(org.graalvm.word.WordBase value)
Prints the value, treated as an unsigned value, in hexadecimal format.
|
Log |
hexdump(org.graalvm.word.PointerBase from,
int wordSize,
int numWords)
Prints a hexdump.
|
boolean |
isEnabled()
Is this log enabled?
|
Log |
newline()
Prints the newline character.
|
Log |
number(long value,
int radix,
boolean signed)
Prints the value according according to the given format specification.
|
Log |
object(Object value)
Simulates java.lang.String.valueOf(Object obj), but without the call to hashCode().
|
Log |
rational(long numerator,
long denominator,
long decimals)
Fast printing of a rational numbers without allocation memory.
|
protected Log |
rawBytes(org.graalvm.nativeimage.c.type.CCharPointer bytes,
org.graalvm.word.UnsignedWord length) |
Log |
redent(boolean addOrRemove)
Change current amount of indentation.
|
Log |
signed(int value)
Prints the value, treated as a signed value, in decimal format.
|
Log |
signed(long value)
Prints the value, treated as a signed value, in decimal format.
|
Log |
signed(org.graalvm.word.WordBase value)
Prints the value, treated as a signed value, in decimal format.
|
Log |
spaces(int value)
Prints the requested number of spaces, e.g., for indentation.
|
Log |
string(byte[] value,
int offset,
int length)
Prints the provided range of bytes in the array, without any conversion.
|
Log |
string(org.graalvm.nativeimage.c.type.CCharPointer value)
Prints the C string.
|
Log |
string(char[] value)
Prints all characters in the array, without any platform- or charset-depending conversions.
|
Log |
string(String value)
Prints all characters in the string, without any platform- or charset-depending conversions.
|
Log |
string(String str,
int fill,
int align)
Prints all characters in the string, filling with spaces before or after.
|
Log |
unsigned(int value)
Prints the value, treated as an unsigned value, in decimal format.
|
Log |
unsigned(long value)
Prints the value, treated as an unsigned value, in decimal format.
|
Log |
unsigned(long value,
int fill,
int align)
Prints the value, treated as an unsigned value, filing spaces before or after.
|
Log |
unsigned(org.graalvm.word.WordBase value)
Prints the value, treated as an unsigned value, in decimal format.
|
Log |
unsigned(org.graalvm.word.WordBase value,
int fill,
int align)
Prints the value, treated as an unsigned value, filing spaces before or after.
|
Log |
zhex(byte value)
Prints the value, treated as an unsigned value, in hexadecimal format zero filled to
2-digits.
|
Log |
zhex(int value)
Prints the value, treated as an unsigned value, in hexadecimal format zero filled to
8-digits.
|
Log |
zhex(long value)
Prints the value, treated as an unsigned value, in hexadecimal format zero filled to
16-digits.
|
Log |
zhex(short value)
Prints the value, treated as an unsigned value, in hexadecimal format zero filled to
4-digits.
|
public boolean isEnabled()
Log
public Log string(String value)
Log
public Log string(String str, int fill, int align)
Log
public Log string(char[] value)
Log
public Log string(byte[] value, int offset, int length)
Log
public Log string(org.graalvm.nativeimage.c.type.CCharPointer value)
Log
public Log character(char value)
Log
public Log number(long value, int radix, boolean signed)
public Log signed(org.graalvm.word.WordBase value)
Log
public Log signed(int value)
Log
public Log signed(long value)
Log
public Log unsigned(org.graalvm.word.WordBase value)
Log
public Log unsigned(org.graalvm.word.WordBase value, int fill, int align)
Log
public Log unsigned(int value)
Log
public Log unsigned(long value)
Log
public Log unsigned(long value, int fill, int align)
Log
public Log rational(long numerator, long denominator, long decimals)
Note: this method will not perform rounding.
Note: this method will print all trailing zeros, i.e., rational(1, 2, 4)
prints
0.5000
public Log hex(org.graalvm.word.WordBase value)
Log
public Log hex(int value)
Log
public Log hex(long value)
Log
public Log bool(boolean value)
Log
public Log object(Object value)
Log
public Log spaces(int value)
Log
public Log flush()
Log
public Log autoflush(boolean onOrOff)
Log
public Log redent(boolean addOrRemove)
Log
protected Log rawBytes(org.graalvm.nativeimage.c.type.CCharPointer bytes, org.graalvm.word.UnsignedWord length)
public Log zhex(long value)
Log
public Log zhex(int value)
Log
public Log zhex(short value)
Log
public Log zhex(byte value)
Log