Package io.deephaven.io.log
Interface LogEntry
- All Superinterfaces:
LogOutput
,LogSink.Element
- All Known Implementing Classes:
DelayedLogEntryImpl
,DelayedLogEntryImpl2
,LogEntry.Null
,LogEntryImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static class
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
LogOutput.LongFormatter, LogOutput.ObjFormatter<T>, LogOutput.ObjIntIntFormatter<T>, LogOutput.ObjObjFormatter<T,
U> -
Field Summary
FieldsFields inherited from interface io.deephaven.base.log.LogOutput
APPENDABLE_ARRAY_FORMATTER, APPENDABLE_COLLECTION_FORMATTER, BASIC_FORMATTER, BOOLEAN_ARRAY_FORMATTER, INT_ARRAY_FORMATTER, LOCAL_DATE_TIME_FORMATTER, MILLIS_FROM_EPOCH_FORMATTER, millisFormatter, NULL_TERMINATED_STRING_FORMATTER, SOCKADDR_FORMATTER, STRING_ARRAY_FORMATTER, STRING_COLLECTION_FORMATTER
-
Method Summary
Modifier and TypeMethodDescriptionappend
(boolean b) append
(byte[] ba) append
(byte[] ba, byte terminator) append
(byte[] ba, int pos, int length) append
(char c) append
(int i) append
(long l) append
(short s) append
(LogOutput.LongFormatter formatter, long n) <T> LogEntry
append
(LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogEntry
append
(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,
U> LogEntry append
(LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append
(LogOutputAppendable appendable) default LogEntry
default LogEntry
append
(CharSequence seq) append
(CharSequence seq, int start, int length) default LogEntry
default LogEntry
default LogEntry
append
(ByteBuffer buffer) Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer.appendDouble
(double f) default LogEntry
appendDouble
(double doubleValue, int decimalPlaces) Append a double to the exact given number of decimal places, rounding half up.default LogEntry
appendDouble
(double doubleValue, int decimalPlaces, int maxTrailingZeroesToDiscard) Append a double rounded to the given number of decimal places, rounding half up.default LogEntry
appendTimestamp
(long utcMillis, TimestampBuffer tb) appendTimestampMicros
(long utcMicros, TimestampBufferMicros tb) void
end()
Completes the log entry.void
endl()
Completes the log entry with a newline.nf()
nl()
Methods inherited from interface io.deephaven.base.log.LogOutput
clear, close, getBuffer, getBufferCount, getEndOfHeaderOffset, markEndOfHeader, relativeSize, size, start
Methods inherited from interface io.deephaven.io.log.LogSink.Element
getLevel, getThrowable, getTimestampMicros, writing, written
-
Field Details
-
NULL
-
-
Method Details
-
start
-
start
-
start
-
end
void end()Completes the log entry. Callers should not usethis
after completion. End orendl()
should be called exactly once. -
endl
void endl()Completes the log entry with a newline. Callers should not usethis
after completion. Endl orend()
should be called exactly once. -
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDouble
in interfaceLogOutput
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
Description copied from interface:LogOutput
Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer. -
appendTimestamp
- Specified by:
appendTimestamp
in interfaceLogOutput
-
appendTimestampMicros
- Specified by:
appendTimestampMicros
in interfaceLogOutput
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDouble
in interfaceLogOutput
-
appendDouble
Append a double to the exact given number of decimal places, rounding half up.- Parameters:
doubleValue
- a double value to append to the logEntrydecimalPlaces
- a positive integer between 0 and 9- Returns:
- the resulting
LogEntry
-
appendDouble
default LogEntry appendDouble(double doubleValue, int decimalPlaces, int maxTrailingZeroesToDiscard) Append a double rounded to the given number of decimal places, rounding half up. If to the given decimal places of precision- Parameters:
doubleValue
- a double value to append to the logEntrydecimalPlaces
- a positive integer between 0 and 9 for the target number of decimal places to round tomaxTrailingZeroesToDiscard
- a positive integer between 0 and 9 for the maximum trailing zeroes (if any) to discard from the fractional part of the result. The fractional part of the result will have always at least(decimalPlaces - maxTrailingZeroesToDiscard)
places.- Returns:
- the resulting
LogEntry
-
nf
LogEntry nf() -
nl
LogEntry nl()
-