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 classstatic classNested 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> LogEntryappend(LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogEntryappend(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 LogEntrydefault LogEntryappend(CharSequence seq) append(CharSequence seq, int start, int length) default LogEntrydefault LogEntrydefault LogEntryappend(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 LogEntryappendDouble(double doubleValue, int decimalPlaces) Append a double to the exact given number of decimal places, rounding half up.default LogEntryappendDouble(double doubleValue, int decimalPlaces, int maxTrailingZeroesToDiscard) Append a double rounded to the given number of decimal places, rounding half up.default LogEntryappendTimestamp(long utcMillis, TimestampBuffer tb) appendTimestampMicros(long utcMicros, TimestampBufferMicros tb) voidend()Completes the log entry.voidendl()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, startMethods 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 usethisafter completion. End orendl()should be called exactly once. -
endl
void endl()Completes the log entry with a newline. Callers should not usethisafter completion. Endl orend()should be called exactly once. -
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDoublein interfaceLogOutput
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
Description copied from interface:LogOutputAppends 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:
appendTimestampin interfaceLogOutput
-
appendTimestampMicros
- Specified by:
appendTimestampMicrosin interfaceLogOutput
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDoublein 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()
-