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.
|
protected FileDescriptor |
getOutputFile() |
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()
Logpublic Log string(String value)
Logpublic Log string(String str, int fill, int align)
Logpublic Log string(char[] value)
Logpublic Log string(byte[] value, int offset, int length)
Logpublic Log string(org.graalvm.nativeimage.c.type.CCharPointer value)
Logpublic Log character(char value)
Logpublic Log number(long value, int radix, boolean signed)
public Log signed(org.graalvm.word.WordBase value)
Logpublic Log signed(int value)
Logpublic Log signed(long value)
Logpublic Log unsigned(org.graalvm.word.WordBase value)
Logpublic Log unsigned(org.graalvm.word.WordBase value, int fill, int align)
Logpublic Log unsigned(int value)
Logpublic Log unsigned(long value)
Logpublic Log unsigned(long value, int fill, int align)
Logpublic 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)
Logpublic Log hex(int value)
Logpublic Log hex(long value)
Logpublic Log bool(boolean value)
Logpublic Log object(Object value)
Logpublic Log spaces(int value)
Logpublic Log flush()
Logpublic Log autoflush(boolean onOrOff)
Logpublic Log redent(boolean addOrRemove)
Logprotected Log rawBytes(org.graalvm.nativeimage.c.type.CCharPointer bytes, org.graalvm.word.UnsignedWord length)
protected FileDescriptor getOutputFile()
public Log zhex(long value)
Logpublic Log zhex(int value)
Logpublic Log zhex(short value)
Logpublic Log zhex(byte value)
Log