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
  • Field Details

  • Method Details

    • start

      LogEntry start(LogSink sink, LogLevel level)
    • start

      LogEntry start(LogSink sink, LogLevel level, long currentTimeMicros)
    • start

      LogEntry start(LogSink sink, LogLevel level, long currentTimeMicros, Throwable t)
    • end

      void end()
      Completes the log entry. Callers should not use this after completion. End or endl() should be called exactly once.
    • endl

      void endl()
      Completes the log entry with a newline. Callers should not use this after completion. Endl or end() should be called exactly once.
    • append

      LogEntry append(boolean b)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(char c)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(short s)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(int i)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(long l)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • appendDouble

      LogEntry appendDouble(double f)
      Specified by:
      appendDouble in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(io.deephaven.base.log.LogOutputAppendable appendable)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(io.deephaven.base.log.LogOutput.LongFormatter formatter, long n)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      <T> LogEntry append(io.deephaven.base.log.LogOutput.ObjFormatter<T> objFormatter, T t)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      <T> LogEntry append(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      <T, U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T,U> objObjFormatter, T t, U u)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(CharSequence seq)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(CharSequence seq, int start, int length)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(ByteBuffer buffer)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • appendTimestamp

      LogEntry appendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb)
      Specified by:
      appendTimestamp in interface io.deephaven.base.log.LogOutput
    • appendTimestampMicros

      LogEntry appendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb)
      Specified by:
      appendTimestampMicros in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(Throwable t)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(byte[] ba)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(byte[] ba, int pos, int length)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      LogEntry append(byte[] ba, byte terminator)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      default LogEntry append(Boolean b)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      default LogEntry append(Character c)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      default LogEntry append(Short s)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      default LogEntry append(Integer i)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • append

      default LogEntry append(Long l)
      Specified by:
      append in interface io.deephaven.base.log.LogOutput
    • appendDouble

      default LogEntry appendDouble(Double f)
      Specified by:
      appendDouble in interface io.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 logEntry
      decimalPlaces - 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 logEntry
      decimalPlaces - a positive integer between 0 and 9 for the target number of decimal places to round to
      maxTrailingZeroesToDiscard - 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:
      nf in interface io.deephaven.base.log.LogOutput
    • nl

      LogEntry nl()
      Specified by:
      nl in interface io.deephaven.base.log.LogOutput