Package io.deephaven.io.log
Interface LogEntry
- All Superinterfaces:
io.deephaven.base.log.LogOutput,LogSink.Element
- All Known Implementing Classes:
DelayedLogEntryImpl,DelayedLogEntryImpl2,LogEntry.Null,LogEntryImpl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
io.deephaven.base.log.LogOutput.LongFormatter, io.deephaven.base.log.LogOutput.ObjFormatter<T extends Object>, io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T extends Object>, io.deephaven.base.log.LogOutput.ObjObjFormatter<T extends Object,U extends Object> -
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(io.deephaven.base.log.LogOutput.LongFormatter formatter, long n) <T> LogEntryappend(io.deephaven.base.log.LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogEntryappend(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append(io.deephaven.base.log.LogOutputAppendable appendable) default LogEntrydefault LogEntryappend(CharSequence seq) append(CharSequence seq, int start, int length) default LogEntrydefault LogEntrydefault LogEntryappend(ByteBuffer buffer) 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, io.deephaven.base.text.TimestampBuffer tb) appendTimestampMicros(long utcMicros, io.deephaven.base.text.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
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendDouble
- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
<T> LogEntry append(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) - Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
<T,U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) - Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendTimestamp
- Specified by:
appendTimestampin interfaceio.deephaven.base.log.LogOutput
-
appendTimestampMicros
- Specified by:
appendTimestampMicrosin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendDouble
- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput
-
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()- Specified by:
nfin interfaceio.deephaven.base.log.LogOutput
-
nl
LogEntry nl()- Specified by:
nlin interfaceio.deephaven.base.log.LogOutput
-