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
public interface LogEntry extends io.deephaven.base.log.LogOutput, LogSink.Element
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLogEntry.Null-
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
io.deephaven.base.log.LogOutput.LongFormatter, io.deephaven.base.log.LogOutput.ObjFormatter<T extends java.lang.Object>, io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T extends java.lang.Object>, io.deephaven.base.log.LogOutput.ObjObjFormatter<T extends java.lang.Object,U extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static LogEntry.NullNULL-
Fields inherited from interface io.deephaven.base.log.LogOutput
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LogEntryappend(boolean b)LogEntryappend(byte[] ba)LogEntryappend(byte[] ba, byte terminator)LogEntryappend(byte[] ba, int pos, int length)LogEntryappend(char c)LogEntryappend(int i)LogEntryappend(long l)LogEntryappend(short s)LogEntryappend(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>
LogEntryappend(io.deephaven.base.log.LogOutput.ObjObjFormatter<T,U> objObjFormatter, T t, U u)LogEntryappend(io.deephaven.base.log.LogOutputAppendable appendable)default LogEntryappend(java.lang.Boolean b)default LogEntryappend(java.lang.Character c)LogEntryappend(java.lang.CharSequence seq)LogEntryappend(java.lang.CharSequence seq, int start, int length)default LogEntryappend(java.lang.Integer i)default LogEntryappend(java.lang.Long l)default LogEntryappend(java.lang.Short s)LogEntryappend(java.lang.Throwable t)LogEntryappend(java.nio.ByteBuffer buffer)LogEntryappendDouble(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 LogEntryappendDouble(java.lang.Double f)LogEntryappendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb)LogEntryappendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb)LogEntryend()LogEntryendl()LogEntrynf()LogEntrynl()LogEntrystart(LogSink sink, LogLevel level)LogEntrystart(LogSink sink, LogLevel level, long currentTimeMicros)LogEntrystart(LogSink sink, LogLevel level, long currentTimeMicros, java.lang.Throwable t)-
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 Detail
-
NULL
static final LogEntry.Null NULL
-
-
Method Detail
-
end
LogEntry end()
-
endl
LogEntry endl()
-
append
LogEntry append(boolean b)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(char c)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(short s)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(int i)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(long l)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendDouble
LogEntry appendDouble(double f)
- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(io.deephaven.base.log.LogOutputAppendable appendable)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(io.deephaven.base.log.LogOutput.LongFormatter formatter, long n)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
<T> LogEntry append(io.deephaven.base.log.LogOutput.ObjFormatter<T> objFormatter, T t)
- 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
LogEntry append(java.lang.CharSequence seq)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(java.lang.CharSequence seq, int start, int length)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(java.nio.ByteBuffer buffer)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendTimestamp
LogEntry appendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb)
- Specified by:
appendTimestampin interfaceio.deephaven.base.log.LogOutput
-
appendTimestampMicros
LogEntry appendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb)
- Specified by:
appendTimestampMicrosin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(java.lang.Throwable t)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(byte[] ba)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(byte[] ba, int pos, int length)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
LogEntry append(byte[] ba, byte terminator)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
default LogEntry append(java.lang.Boolean b)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
default LogEntry append(java.lang.Character c)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
default LogEntry append(java.lang.Short s)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
default LogEntry append(java.lang.Integer i)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
append
default LogEntry append(java.lang.Long l)
- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput
-
appendDouble
default LogEntry appendDouble(java.lang.Double f)
- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput
-
appendDouble
default LogEntry appendDouble(double doubleValue, int decimalPlaces)
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
-
-